Trait hybrid_clocks::ClockSource
[−]
[src]
pub trait ClockSource { type Time: Ord + Copy + Sub<Output=Self::Delta> + Debug; type Delta: Ord; fn now(&mut self) -> Self::Time; }
Describes the interface that the inner clock source must provide.
Associated Types
type Time: Ord + Copy + Sub<Output=Self::Delta> + Debug
Represents the described clock time.
type Delta: Ord
The difference between two timestamps.
Required Methods
fn now(&mut self) -> Self::Time
Returns the current clock time.
Implementors
impl ClockSource for Wall