wasi_common::clocks

Trait WasiMonotonicClock

Source
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.