class Clock
A clock used to measure time.
<init> |
A clock used to measure time. Clock() |
currentTime |
Gets the current milliseconds since the epoch according to this clock. Typically this is the same as from the JVM but may be different if the time has been manipulated. val currentTime: TimeMs |
advanceTime |
Advances the internal time by the specified amount. fun advanceTime(offset: TimeMs): Unit |
inFuture |
fun inFuture(time: Timestamp): Boolean |
inPast |
fun inPast(time: Timestamp): Boolean |
now |
fun now(): Instant! |
nowOrPast |
fun nowOrPast(time: Timestamp): Boolean |
resetToNow |
Resets clock to the current time removing any offsets from advancing the clock manually fun resetToNow(): Unit |