| Constructor and Description |
|---|
MockTicker(AtomicLong currentTimeMillis) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultTicker, mockpublic MockTicker(AtomicLong currentTimeMillis)
public long nanoTime()
Tickerpublic long stableMilliseconds()
TickerDate.stableMilliseconds in interface TickerCopyright © 2020. All rights reserved.