Skip to main content

WallClock

Trait WallClock 

Source
pub trait WallClock:
    Send
    + Sync
    + RefUnwindSafe {
    // Required method
    fn now_micros(&self) -> Option<i64>;
}

Required Methods§

Source

fn now_micros(&self) -> Option<i64>

Wall-clock reading in microseconds since the Unix epoch, or None while time is untrusted.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§