pub struct TimerPerformance { /* private fields */ }Expand description
Completed callback performance aggregates for one runtime epoch.
Implementations§
Source§impl TimerPerformance
impl TimerPerformance
Sourcepub const fn record(&mut self, measurement: TimerMeasurement)
pub const fn record(&mut self, measurement: TimerMeasurement)
Record one callback with valid end measurements.
Sourcepub const fn instructions(self) -> MeasurementSummary
pub const fn instructions(self) -> MeasurementSummary
Return the instruction aggregate.
Sourcepub const fn elapsed_ns(self) -> MeasurementSummary
pub const fn elapsed_ns(self) -> MeasurementSummary
Return the elapsed-nanosecond aggregate.
Trait Implementations§
Source§impl Clone for TimerPerformance
impl Clone for TimerPerformance
Source§fn clone(&self) -> TimerPerformance
fn clone(&self) -> TimerPerformance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimerPerformance
Source§impl Debug for TimerPerformance
impl Debug for TimerPerformance
Source§impl Default for TimerPerformance
impl Default for TimerPerformance
Source§fn default() -> TimerPerformance
fn default() -> TimerPerformance
Returns the “default value” for a type. Read more
impl Eq for TimerPerformance
Source§impl PartialEq for TimerPerformance
impl PartialEq for TimerPerformance
impl StructuralPartialEq for TimerPerformance
Auto Trait Implementations§
impl Freeze for TimerPerformance
impl RefUnwindSafe for TimerPerformance
impl Send for TimerPerformance
impl Sync for TimerPerformance
impl Unpin for TimerPerformance
impl UnsafeUnpin for TimerPerformance
impl UnwindSafe for TimerPerformance
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