pub trait Clock {
    type Instant: Instant;
    fn now(&mut self) -> Self::Instant;
}
Expand description

Something that can provide the current time

Associated Types

The type of instant that this clock produces

Required methods

Returns the current time

Implementors