Modifier and Type | Method and Description |
---|---|
static MillisClock |
getInstance()
Returns a
MillisClock . |
long |
nanoTime()
Returns a time measurement with nanosecond precision that can only be used to calculate elapsed
time.
|
long |
now()
Obtains the current epoch timestamp in nanos from this clock.
|
public static MillisClock getInstance()
MillisClock
.MillisClock
.public long now()
Clock
public long nanoTime()
Clock