pub struct ScopedTimer<'a> { /* private fields */ }Expand description
RAII timer for automatic performance tracking
Implementations§
Source§impl<'a> ScopedTimer<'a>
impl<'a> ScopedTimer<'a>
Sourcepub fn new(monitor: &'a PerformanceMonitor, operation: &str) -> Self
pub fn new(monitor: &'a PerformanceMonitor, operation: &str) -> Self
Create a new scoped timer
Trait Implementations§
Source§impl Drop for ScopedTimer<'_>
impl Drop for ScopedTimer<'_>
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> UnsafeUnpin 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