public interface Ticker
| Modifier and Type | Method and Description |
|---|---|
static Ticker |
defaultTicker() |
static Ticker |
mock(AtomicLong currentTimeMillis) |
long |
nanoTime()
Returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds.
|
long |
stableMilliseconds()
Returns the current value of the running Java Virtual Machine's high-resolution time source, in milliseconds with following characteristics:
Value is not sensitive to any change of system time.
Value is always positive.
Value is not correlated to
Date.
|
long nanoTime()
long stableMilliseconds()
Date.static Ticker defaultTicker()
static Ticker mock(AtomicLong currentTimeMillis)
Copyright © 2020. All rights reserved.