pub trait Clock {
type Error: Error;
// Required methods
fn current_jiffy(&self) -> Result<u64, Self::Error>;
fn jiffies_per_second(&self) -> u64;
}Expand description
A clock.
Required Associated Types§
Required Methods§
Sourcefn current_jiffy(&self) -> Result<u64, Self::Error>
fn current_jiffy(&self) -> Result<u64, Self::Error>
Returns a current jiffy.
Sourcefn jiffies_per_second(&self) -> u64
fn jiffies_per_second(&self) -> u64
Returns jiffies per second.