pub trait WasiMonotonicClock: Send + Sync {
    // Required methods
    fn resolution(&self) -> Duration;
    fn now(&self, precision: Duration) -> Instant;
}

Required Methods§

source

fn resolution(&self) -> Duration

source

fn now(&self, precision: Duration) -> Instant

Implementors§

source§

impl WasiMonotonicClock for MonotonicClock

Available on crate feature sync only.