[][src]Struct stm32f1xx_hal::time::MonoTimer

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]

impl Copy for MonoTimer[src]

Auto Trait Implementations

impl Send for MonoTimer

impl Sync for MonoTimer

impl Unpin for MonoTimer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.