@BetaApi public final class CurrentMillisClock extends Object implements ApiClock, Serializable
ApiClock interface, which uses System.currentTimeMillis()
as time source.| Modifier and Type | Method and Description |
|---|---|
static ApiClock |
getDefaultClock() |
long |
millisTime()
Returns the current value of this clock's high-resolution time source, in milliseconds.
|
long |
nanoTime()
Returns the current value of this clock's high-resolution time source, in nanoseconds.
|
public static ApiClock getDefaultClock()
public long nanoTime()
ApiClockpublic long millisTime()
ApiClockmillisTime in interface ApiClock