pub struct Dwt { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl CycleCounter for Dwt
impl CycleCounter for Dwt
Source§fn start(&self)
fn start(&self)
Enable and start the cycle counter.
Depending on the underlying hardware, it may be necessary to call reset
before starting the cycle counter for the first time to get accurate results.
Source§fn profile_closure<F>(&self, f: F) -> u64where
F: FnOnce(),
fn profile_closure<F>(&self, f: F) -> u64where
F: FnOnce(),
Benchmark the number of cycles to run a passed closure.
This function is intended for use debugging in-kernel routines.
Auto Trait Implementations§
impl Freeze for Dwt
impl !RefUnwindSafe for Dwt
impl !Send for Dwt
impl !Sync for Dwt
impl Unpin for Dwt
impl !UnwindSafe for Dwt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more