Trait wasi_common::clocks::WasiSystemClock

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

Required Methods§

source

fn resolution(&self) -> Duration

source

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

Implementors§