Package de.gurkenlabs.litiengine.util
Class TimeUtilities
java.lang.Object
de.gurkenlabs.litiengine.util.TimeUtilities
public final class TimeUtilities
extends java.lang.Object
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeUtilities.TimerFormat
Method Summary
Modifier and Type Method Description static long
getDays(long ms)
static long
getHours(long ms)
static long
getMinutes(long ms)
static long
getRemainingDays(long ms)
static long
getRemainingHours(long ms)
static long
getRemainingMilliSeconds(long ms)
static long
getRemainingMinutes(long ms)
static long
getRemainingSeconds(long ms)
static long
getSeconds(long ms)
static double
nanoToMs(long nano)
static java.lang.String
toTimerFormat(long duration, TimeUtilities.TimerFormat format)
Method Details
nanoToMs
public static double nanoToMs(long nano)getDays
public static long getDays(long ms)getHours
public static long getHours(long ms)getMinutes
public static long getMinutes(long ms)getSeconds
public static long getSeconds(long ms)getRemainingDays
public static long getRemainingDays(long ms)getRemainingHours
public static long getRemainingHours(long ms)getRemainingMinutes
public static long getRemainingMinutes(long ms)getRemainingSeconds
public static long getRemainingSeconds(long ms)getRemainingMilliSeconds
public static long getRemainingMilliSeconds(long ms)toTimerFormat