| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static long | millis()
Returns: the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. |
| public static long | Returns: time value in nanosecondsmust be milliseconds millis)Convert milliseconds time to nanoseconds |
| public static long | Returns: time value in millisecondsmust be nanoseconds nanos)Convert nanoseconds time to milliseconds |
| public static long | |
| public static long | Returns: - time passed since prevTime in milliseconds- must be milliseconds prevTime)Get the time in millis passed since a previous time |
| public static long | Returns: - time passed since prevTime in nanoseconds- must be nanoseconds prevTime)Get the time in nanos passed since a previous time |
| nanosPerMilli | back to summary |
|---|---|
| private static final long nanosPerMilli | |
| TimeUtils | back to summary |
|---|---|
| public TimeUtils() | |
| millis | back to summary |
|---|---|
public static long millis()
| |
| millisToNanos | back to summary |
|---|---|
| public static long millisToNanos(long millis) Convert milliseconds time to nanoseconds
| |
| nanosToMillis | back to summary |
|---|---|
| public static long nanosToMillis(long nanos) Convert nanoseconds time to milliseconds
| |
| nanoTime | back to summary |
|---|---|
public static long nanoTime()
| |
| timeSinceMillis | back to summary |
|---|---|
| public static long timeSinceMillis(long prevTime) Get the time in millis passed since a previous time
| |
| timeSinceNanos | back to summary |
|---|---|
| public static long timeSinceNanos(long prevTime) Get the time in nanos passed since a previous time
| |