Struct stm32f4xx_hal::dwt::StopWatch
source · [−]pub struct StopWatch<'l> { /* private fields */ }
Expand description
Very simple stopwatch which reads from DWT Cycle Counter to record timing.
Since DWT Cycle Counter is a 32-bit counter that wraps around to 0 on overflow,
users should be aware that StopWatch
cannot correctly measure laps
which take longer than u32::MAX
cycles
Implementations
Auto Trait Implementations
impl<'l> RefUnwindSafe for StopWatch<'l>
impl<'l> Send for StopWatch<'l>
impl<'l> Sync for StopWatch<'l>
impl<'l> Unpin for StopWatch<'l>
impl<'l> !UnwindSafe for StopWatch<'l>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more