clock property

  1. @internal
ClockProvider clock
getter/setter pair

If clock is provided, it is used to get time instead of the system clock. This is useful in tests. Should be an implementation of ClockProvider. The ClockProvider is expected to return UTC time.

Implementation

@internal
ClockProvider clock = getUtcDateTime;