orbit-util / orbit.util.time / Clock

Clock

class Clock

A clock used to measure time.

Constructors

<init>

A clock used to measure time.

Clock()

Properties

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

Functions

advanceTime

Advances the internal time by the specified amount.

fun advanceTime(offset: TimeMs): Unit