Struct adi::adi_clock::Timer []

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

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 (or since Timer::new() was called).

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