pub struct OperationTimer { /* private fields */ }
Expand description
A timer for tracking how long an operation took to complete.
Implementations§
Source§impl OperationTimer
impl OperationTimer
pub fn start() -> Self
pub fn stop(self) -> OperationDuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationTimer
impl RefUnwindSafe for OperationTimer
impl Send for OperationTimer
impl Sync for OperationTimer
impl Unpin for OperationTimer
impl UnwindSafe for OperationTimer
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