1 2 3 4 5 6 7 8 9 10 11
use crate::instant::Instant; use crate::numerical_duration::TimeRep; use crate::Period; pub trait Clock: Sized + Period { /// The type of the internal representation of time type Rep: TimeRep; /// Get the current Instant fn now() -> Instant<Self>; }