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