pub struct Timer { /* private fields */ }Expand description
Timing measurement utility for benchmarking operations.
Implementations§
Source§impl Timer
impl Timer
Sourcepub fn total_duration(&self) -> Duration
pub fn total_duration(&self) -> Duration
Get the total accumulated duration.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the timer is currently running.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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