public class NanosOffsetClock extends Object implements Clock
Clock that uses System.nanoTime() to track the progress of time.| Modifier and Type | Class and Description |
|---|---|
static class |
NanosOffsetClock.Factory
Creates instances of
NanosOffsetClock. |
| Modifier and Type | Method and Description |
|---|---|
static NanosOffsetClock |
create() |
Instant |
now()
Returns the current time as an
Instant. |