Skip to main content

Clock

Trait Clock 

Source
pub trait Clock {
    // Required method
    fn now_ms(&self) -> u64;
}
Expand description

Source of monotonic time used by the session.

The returned value is in milliseconds since some fixed epoch chosen by the implementation. The crypto service only ever compares values, so the epoch does not matter as long as it is monotonic.

Required Methods§

Source

fn now_ms(&self) -> u64

Current monotonic time in milliseconds.

Implementors§