pub struct PerformanceTimer { /* private fields */ }Expand description
Performance timer for operation profiling
Implementations§
Source§impl PerformanceTimer
impl PerformanceTimer
Sourcepub fn elapsed_ms(&self) -> u64
pub fn elapsed_ms(&self) -> u64
Get elapsed time in milliseconds
Sourcepub fn elapsed_secs(&self) -> f64
pub fn elapsed_secs(&self) -> f64
Get elapsed time in seconds
Sourcepub fn print_elapsed(&self)
pub fn print_elapsed(&self)
Print elapsed time
Trait Implementations§
Source§impl Clone for PerformanceTimer
impl Clone for PerformanceTimer
Source§fn clone(&self) -> PerformanceTimer
fn clone(&self) -> PerformanceTimer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerformanceTimer
impl Debug for PerformanceTimer
Auto Trait Implementations§
impl Freeze for PerformanceTimer
impl RefUnwindSafe for PerformanceTimer
impl Send for PerformanceTimer
impl Sync for PerformanceTimer
impl Unpin for PerformanceTimer
impl UnsafeUnpin for PerformanceTimer
impl UnwindSafe for PerformanceTimer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more