Struct stm32f103xx_hal::time::MonoTimer
[−]
[src]
pub struct MonoTimer { /* fields omitted */ }
A monotonic nondecreasing timer
Methods
impl MonoTimer
[src]
pub fn new(dwt: DWT, clocks: Clocks) -> Self
[src]
Creates a new Monotonic
timer
pub fn frequency(&self) -> Hertz
[src]
Returns the frequency at which the monotonic timer is operating at
pub fn now(&self) -> Instant
[src]
Returns an Instant
corresponding to "now"
Trait Implementations
impl Clone for MonoTimer
[src]
fn clone(&self) -> MonoTimer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more