pub struct TickStatsSnapshot {
pub avg_tick_loop_duration_ns: u64,
pub avg_tick_loop_sleep_ns: u64,
pub max_drift_ns: i64,
pub total_ticks: u64,
pub total_drift_ns: i64,
pub missed_ticks: u64,
pub last_tick_ns: u64,
}Expand description
Snapshot of tick statistics at a point in time
Fields§
§avg_tick_loop_duration_ns: u64Average duration of tick loop processing (excluding sleep) in nanoseconds
avg_tick_loop_sleep_ns: u64Average sleep duration in nanoseconds
max_drift_ns: i64Maximum absolute drift observed in nanoseconds
total_ticks: u64Total number of ticks processed
total_drift_ns: i64Total cumulative drift in nanoseconds (positive = behind schedule)
missed_ticks: u64Number of ticks where this handler wasn’t called (due to interval)
last_tick_ns: u64Timestamp of the last tick in nanoseconds
Trait Implementations§
Source§impl Clone for TickStatsSnapshot
impl Clone for TickStatsSnapshot
Source§fn clone(&self) -> TickStatsSnapshot
fn clone(&self) -> TickStatsSnapshot
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 TickStatsSnapshot
impl Debug for TickStatsSnapshot
Source§impl Default for TickStatsSnapshot
impl Default for TickStatsSnapshot
Source§fn default() -> TickStatsSnapshot
fn default() -> TickStatsSnapshot
Returns the “default value” for a type. Read more
impl Copy for TickStatsSnapshot
Auto Trait Implementations§
impl Freeze for TickStatsSnapshot
impl RefUnwindSafe for TickStatsSnapshot
impl Send for TickStatsSnapshot
impl Sync for TickStatsSnapshot
impl Unpin for TickStatsSnapshot
impl UnwindSafe for TickStatsSnapshot
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