public class CurrentTime
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static long |
getCurrentTime()
Returns the approximate current time in milliseconds.
|
static long |
getCurrentTimeActual()
Gets current time, handling test
|
static long |
getExactTime()
Returns the exact current time in milliseconds.
|
static long |
getExactTimeNanoseconds()
Returns the exact current time in nanoseconds.
|
static boolean |
isActive() |
static boolean |
isTest()
Returns true for testing.
|
static void |
yieldIfTest()
Yield if in test mode to maintain ordering
|
public static boolean isActive()
public static long getCurrentTime()
public static long getCurrentTimeActual()
public static long getExactTime()
public static long getExactTimeNanoseconds()
public static boolean isTest()
public static void yieldIfTest()