pub struct Stopwatch { /* private fields */ }Expand description
A counter that can measure elapsed time between snapshots.
Implementations§
Source§impl Stopwatch
impl Stopwatch
Sourcepub fn elapsed_ms(&self) -> f64
pub fn elapsed_ms(&self) -> f64
Returns total elapsed milliseconds since start.
Sourcepub fn num_splits(&self) -> usize
pub fn num_splits(&self) -> usize
Returns the number of splits.
Auto Trait Implementations§
impl Freeze for Stopwatch
impl RefUnwindSafe for Stopwatch
impl Send for Stopwatch
impl Sync for Stopwatch
impl Unpin for Stopwatch
impl UnsafeUnpin for Stopwatch
impl UnwindSafe for Stopwatch
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