Trait wasi_common::clocks::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§