pub struct Pacing {
pub cycle_s: f64,
pub cycles: u64,
pub wall_s: f64,
pub sim_s: f64,
pub jitter_max_s: f64,
pub overruns: u64,
pub lost_s: f64,
/* private fields */
}Expand description
The loop’s real-time pacing, measured from the wall-clock times of its ticks since the last reset.
Fields§
§cycle_s: f64The nominal cycle.
cycles: u64§wall_s: f64§sim_s: f64§jitter_max_s: f64§overruns: u64Ticks that came more than a whole cycle late.
lost_s: f64Wall-clock time the loop did not simulate: what a tick came later than the most it makes up for (simulate).
sim_s + lost_s is wall_s to within a step on any host; lost_s is 0 on a host that keeps up.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pacing
impl RefUnwindSafe for Pacing
impl Send for Pacing
impl Sync for Pacing
impl Unpin for Pacing
impl UnsafeUnpin for Pacing
impl UnwindSafe for Pacing
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