invoke

operator fun invoke(instant: Instant? = null): Clock
  • Returns the cached clock instance. If an Instant is passed , subsequent calls to the function will return a clock fixed to instant. To reset to a normal (unfixed) clock use resetClock.