pub struct ScopedTimer<'a> { /* private fields */ }Expand description
Scoped timer for automatic duration measurement
Implementations§
Source§impl<'a> ScopedTimer<'a>
impl<'a> ScopedTimer<'a>
pub fn new(profiler: &'a GlobalProfiler, name: String) -> Self
Trait Implementations§
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