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

pub trait Timer: Time {
    fn oneshot(&self, interval: u32);
fn repeat(&self, interval: u32); }

The Timer trait models a timer that can notify when a particular interval has elapsed.

Required Methods

Sets a one-shot timer to fire in interval clock-tics.

Sets repeating timer to fire every interval clock-tics.

Implementors