Trait Clock

Source
pub trait Clock: SendSync {
    // Required method
    fn now(&self) -> Duration;
}
Expand description

A clock provider

On std platforms, use the StandardClock implementation

Required Methods§

Source

fn now(&self) -> Duration

A duration since the UNIX epoch

Implementors§