wasi_common::clocks

Trait 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§

Source§

impl WasiSystemClock for SystemClock

Available on crate feature sync only.