public class TimeLib
extends java.lang.Object
| Constructor and Description |
|---|
TimeLib() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getTick()
Returns an integer representing the percentage (0-99) of the current
second we're at.
|
static int |
getTick(int maxValue)
Returns an integer between zero and the given limit, representing the
amount of time progressed within the current second.
|
static java.lang.String |
humaneTimestamp() |
static java.lang.String |
humaneTimestampWithMillis() |
static double |
millisToHertz(double millis)
Converts millisecond timing to runs per second.
|
static double |
millisToSeconds(double millis)
Converts milliseconds to thousandths of a second.
|
static java.lang.String |
millisToString(long millis) |
static java.lang.String |
safeTimestamp() |
static java.lang.String |
safeTimestampWithMillis() |
public static int getTick()
public static int getTick(int maxValue)
public static java.lang.String humaneTimestamp()
public static java.lang.String safeTimestamp()
public static java.lang.String humaneTimestampWithMillis()
public static java.lang.String safeTimestampWithMillis()
public static java.lang.String millisToString(long millis)
public static double millisToSeconds(double millis)
public static double millisToHertz(double millis)