Skip to main content

Clock

Trait Clock 

pub trait Clock: Send + Sync {
    // Required methods
    fn now_utc(&self) -> DateTime<Utc>;
    fn mono_ns(&self) -> u64;
}

Required Methods§

fn now_utc(&self) -> DateTime<Utc>

fn mono_ns(&self) -> u64

Implementors§