pub struct TimerStats {
pub count: u64,
pub total: Duration,
pub average: Duration,
pub min: Duration,
pub max: Duration,
pub age: Duration,
pub rate_per_second: f64,
}
Expand description
Timer statistics
Fields§
§count: u64
Total number of timing samples
total: Duration
Sum of all durations
average: Duration
Average duration
min: Duration
Minimum duration recorded
max: Duration
Maximum duration recorded
age: Duration
Time since timer creation
rate_per_second: f64
Rate of samples per second
Trait Implementations§
Source§impl Clone for TimerStats
impl Clone for TimerStats
Source§fn clone(&self) -> TimerStats
fn clone(&self) -> TimerStats
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 moreAuto Trait Implementations§
impl Freeze for TimerStats
impl RefUnwindSafe for TimerStats
impl Send for TimerStats
impl Sync for TimerStats
impl Unpin for TimerStats
impl UnwindSafe for TimerStats
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