#[non_exhaustive]pub struct TimingStats {
pub count: u64,
pub total: Duration,
pub max: Duration,
pub p50: Duration,
pub p95: Duration,
}Expand description
How long something took over a window of runs
(Timings): a listener’s runs, or a point’s passes.
The quantiles may be approximate (an implementation may read them
from a histogram); the count, total and max are exact.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.count: u64How many runs.
total: DurationTheir time added up.
max: DurationThe longest.
p50: DurationThe median.
p95: DurationThe 95th percentile.
Implementations§
Source§impl TimingStats
impl TimingStats
Trait Implementations§
Source§impl Clone for TimingStats
impl Clone for TimingStats
impl Copy for TimingStats
Source§impl Debug for TimingStats
impl Debug for TimingStats
Source§impl Default for TimingStats
impl Default for TimingStats
impl Eq for TimingStats
Source§impl PartialEq for TimingStats
impl PartialEq for TimingStats
impl StructuralPartialEq for TimingStats
Auto Trait Implementations§
impl Forget for TimingStats
impl Freeze for TimingStats
impl Move for TimingStats
impl RefUnwindSafe for TimingStats
impl Send for TimingStats
impl Sync for TimingStats
impl Unpin for TimingStats
impl UnsafeUnpin for TimingStats
impl UnwindSafe for TimingStats
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