Trait Clock
embedded_time
pub trait Clock: Sized { type Rep: TimeRep; const PERIOD: Period; fn now() -> Instant<Self>; }
type Rep: TimeRep
The type of the internal representation of time
const PERIOD: Period
The duration of one clock tick, AKA the clock precision.
fn now() -> Instant<Self>
Get the current Instant