pub struct TickStats {
pub avg_tick_loop_duration_ns: AtomicU64,
pub avg_tick_loop_sleep_ns: AtomicU64,
pub max_drift_ns: AtomicU64,
pub total_ticks: AtomicU64,
pub total_drift_ns: AtomicI64,
pub missed_ticks: AtomicU64,
pub last_tick_ns: AtomicU64,
}Expand description
Statistics for the tick thread to monitor timing accuracy and performance
Fields§
§avg_tick_loop_duration_ns: AtomicU64Average duration of tick loop processing (excluding sleep) in nanoseconds
avg_tick_loop_sleep_ns: AtomicU64Average sleep duration in nanoseconds
max_drift_ns: AtomicU64Maximum absolute drift observed in nanoseconds
total_ticks: AtomicU64Total number of ticks processed
total_drift_ns: AtomicI64Total cumulative drift in nanoseconds (positive = behind schedule)
missed_ticks: AtomicU64Number of ticks where this handler wasn’t called (due to interval)
last_tick_ns: AtomicU64Timestamp of the last tick in nanoseconds
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TickStats
impl RefUnwindSafe for TickStats
impl Send for TickStats
impl Sync for TickStats
impl Unpin for TickStats
impl UnwindSafe for TickStats
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