Skip to main content

BackendClock

Trait BackendClock 

Source
pub trait BackendClock {
    // Required method
    fn now_mono(&self) -> Duration;
}
Expand description

Monotonic clock abstraction.

Native backends use std::time::Instant; WASM backends use performance.now(). The runtime never calls Instant::now() directly — all time flows through this trait.

Required Methods§

Source

fn now_mono(&self) -> Duration

Returns elapsed time since an unspecified epoch, monotonically increasing.

Implementors§