pub struct MonoClock<T: Copy, const HZ: u32>(_);

Implementations

! Create a new MonoClock using e.g. RTIC’s monotonics::now(). ! ! Args: ! * now: a closure that returns the current ticks ! ! ! use mono_clock::MonoClock; ! let clock = MonoClock::new(|| monotonics::now()); !

Trait Implementations

The type to hold the tick count

The duration of one clock tick in seconds, AKA the clock precision.

Get the current Instant Read more

Spawn a new, OneShot Timer from this clock

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.