Trait Clock

Source
pub trait Clock: Send + Sync {
    // Required methods
    fn now_unix_ms(&self) -> u64;
    fn sleep(&self, d: Duration);
}

Required Methods§

Source

fn now_unix_ms(&self) -> u64

Source

fn sleep(&self, d: Duration)

Implementors§