Skip to main content

WallClock

Trait WallClock 

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

Source of wall-clock timestamps.

Required Methods§

Source

fn system_time(&self) -> SystemTime

Returns the current wall-clock time.

Implementors§