pub struct Stopwatch { /* private fields */ }Expand description
A timer that can be paused and resumed.
The reported elapsed times do not include periods when the timer was paused
Implementations§
Source§impl Stopwatch
impl Stopwatch
Sourcepub fn start_paused() -> Stopwatch
pub fn start_paused() -> Stopwatch
Creates a new Stopwatch which starts paused
Sourcepub fn started_at(&self) -> Instant
pub fn started_at(&self) -> Instant
Trait Implementations§
Source§impl Ord for Stopwatch
impl Ord for Stopwatch
Source§impl PartialOrd for Stopwatch
impl PartialOrd for Stopwatch
impl Copy for Stopwatch
impl Eq for Stopwatch
impl StructuralPartialEq for Stopwatch
Auto Trait Implementations§
impl Freeze for Stopwatch
impl RefUnwindSafe for Stopwatch
impl Send for Stopwatch
impl Sync for Stopwatch
impl Unpin 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