pub struct MonoTimer { /* private fields */ }
Expand description

A monotonic non-decreasing timer

This uses the timer in the debug watch trace peripheral. This means, that if the core is stopped, the timer does not count up. This may be relevant if you are using cortex_m_semihosting::hprintln for debugging in which case the timer will be stopped while printing

Implementations§

Creates a new Monotonic timer

Returns the frequency at which the monotonic timer is operating at

Returns an Instant corresponding to “now”

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.