pub struct ScopedTimer<'a> { /* private fields */ }Expand description
A simple timer that records elapsed time from its creation until it’s dropped.
If the enable_summary feature is active, it prints the elapsed time
when dropped.
Implementations§
Source§impl<'a> ScopedTimer<'a>
impl<'a> ScopedTimer<'a>
Trait Implementations§
Source§impl<'a> Debug for ScopedTimer<'a>
impl<'a> Debug for ScopedTimer<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScopedTimer<'a>
impl<'a> RefUnwindSafe for ScopedTimer<'a>
impl<'a> Send for ScopedTimer<'a>
impl<'a> Sync for ScopedTimer<'a>
impl<'a> Unpin for ScopedTimer<'a>
impl<'a> UnwindSafe for ScopedTimer<'a>
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