Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

Clock

Trait Clock 

pub trait Clock: Send + Sync {
    // Required method
    fn now(&self) -> u64;
}
Expand description

A clock trait used to obtain the current time.

Required Methods§

fn now(&self) -> u64

Implementors§

§

impl Clock for SystemClock

Available on not (target_family=wasm and target_os=unknown).
§

impl<F> Clock for F
where F: Fn() -> u64 + Send + Sync,