pub trait Clock { type Instant: Instant; fn now(&mut self) -> Self::Instant; }
Something that can provide the current time
The type of instant that this clock produces
Returns the current time