pub struct Stopwatch { /* private fields */ }
Expand description
A stopwatch structure for measuring elapsed time.
Implementations§
Source§impl Stopwatch
impl Stopwatch
Sourcepub fn elapsed_ms(&self) -> u32
pub fn elapsed_ms(&self) -> u32
Return the elapsed time in milliseconds since the stopwatch was created.
Sourcepub fn elapsed_human(&self) -> String
pub fn elapsed_human(&self) -> String
Return a human-readable elapsed time string.
Trait Implementations§
Source§impl Default for Stopwatch
Implement the Default trait for Stopwatch, allowing it to be created via Stopwatch::default()
.
impl Default for Stopwatch
Implement the Default trait for Stopwatch, allowing it to be created via Stopwatch::default()
.
impl Copy 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