TimeSource

interface TimeSource

An abstraction for a time source, providing the current time in milliseconds.

This interface is used to abstract away the system clock, making it possible to control time in tests and inject different time-keeping mechanisms.

Inheritors

Functions

Link copied to clipboard
abstract fun currentTimeMillis(): Long

Retrieves the current time expressed in milliseconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).