pub trait ClockSource { type ClockType: ClockType; // Required method fn now() -> <Self::ClockType as ClockType>::Unit; }
A clock source.
The type of clock (either Monotonic or WallTime).
Monotonic
WallTime
The current time according to the clock.
Monotonic clocks return an Instant whereas wall time clocks return a Duration signifying the time since 12:00am January 1st 1970 (i.e. Unix time).
Instant
Duration