pub struct Meter {
times: [f64; 10],
avg: f64,
index: usize,
}
Expand description
The meter.
Fields§
§times: [f64; 10]
Track last 60 timestamps.
avg: f64
Average sample time in microseconds.
index: usize
Index of next time to update.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Meter
impl Send for Meter
impl Sync for Meter
impl Unpin for Meter
impl UnwindSafe for Meter
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