[][src]Trait kernel::hil::time::Time

pub trait Time<W = u32> {
    type Frequency: Frequency;
    fn now(&self) -> W;
fn max_tics(&self) -> W; }

Associated Types

type Frequency: Frequency

Loading content...

Required methods

fn now(&self) -> W

Returns the current time in hardware clock units.

fn max_tics(&self) -> W

Returns the wrap-around value of the clock.

The maximum value of the clock, at which now will wrap around. I.e., this should return core::u32::MAX on a 32-bit-clock, or (1 << 24) - 1 for a 24-bit clock.

Loading content...


Loading content...