How to get milliseconds?
public static int getHours(int totalSeconds) { return totalSeconds / 3600; } public static int getMinutes(int totalSeconds) { return (totalSeconds - 3600*getHours(totalSeconds)) / 60; } public static int getSeconds(int totalSeconds) { return totalSeconds - 3600*getHours(totalSeconds) - 60*getMinutes(totalSeconds); } public static int getMilliseconds(int totalSeconds) { return ??? }