pub struct TimerStatistics {
pub execution_count: usize,
pub elapsed_time: Duration,
}
Expand description
Statistics for a timer.
Fields§
§execution_count: usize
Number of times the callback has been executed.
elapsed_time: Duration
Total elapsed time since the timer started.
Trait Implementations§
Source§impl Clone for TimerStatistics
impl Clone for TimerStatistics
Source§fn clone(&self) -> TimerStatistics
fn clone(&self) -> TimerStatistics
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 TimerStatistics
impl Debug for TimerStatistics
Source§impl Default for TimerStatistics
impl Default for TimerStatistics
Source§fn default() -> TimerStatistics
fn default() -> TimerStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TimerStatistics
impl RefUnwindSafe for TimerStatistics
impl Send for TimerStatistics
impl Sync for TimerStatistics
impl Unpin for TimerStatistics
impl UnwindSafe for TimerStatistics
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