Struct adi::Timer[][src]

pub struct Timer { /* fields omitted */ }

Timer represents a High Precision Event Timer (HPET) or equivalent device. It is used for precise sleeping.

Methods

impl Timer
[src]

Create a new repeating timer with an interval of secs seconds.

Wait until timer self goes off. Returns the number of seconds since self was initialized with Timer::new().

Sleep (wait) for secs seconds. Returns the number of seconds passed while sleeping.

Auto Trait Implementations

impl Send for Timer

impl Sync for Timer