public interface Clock
Modifier and Type | Method and Description |
---|---|
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.
|
long now()
long nanoTime()