Skip to main content

Clock

Trait Clock 

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

Provides the current time in seconds.

Required Methods§

Source

fn now(&self) -> u32

Returns the current time in seconds since an arbitrary epoch.

Implementors§

Source§

impl Clock for FixedClock

Source§

impl Clock for MetClock

Available on crate feature cfs only.
Source§

impl Clock for StdClock

Available on crate feature std only.
Source§

impl Clock for SysTimeClock

Available on crate feature cfs only.