Skip to main content

Clock

Trait Clock 

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

A monotonic clock source for the scheduler.

Required Methods§

Source

fn now_ms(&self) -> u64

Get the current time in milliseconds since epoch.

Implementations on Foreign Types§

Source§

impl<C: Clock> Clock for Arc<C>

Source§

fn now_ms(&self) -> u64

Implementors§