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.