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
fn oneshot(&self, interval: u32)
Sets a one-shot timer to fire in interval
clock-tics.
fn repeat(&self, interval: u32)
Sets repeating timer to fire every interval
clock-tics.