Skip to main content

MonotonicClock

Trait MonotonicClock 

Source
pub trait MonotonicClock {
    // Required method
    fn instant(&self) -> Instant;
}
Available on non-crate feature std, or crate feature std and target_family=wasm and target_os=unknown only.
Expand description

Source of monotonic instants.

Required Methods§

Source

fn instant(&self) -> Instant

Returns the current monotonic instant.

Implementors§