Skip to main content

SAMPLE_WINDOW

Constant SAMPLE_WINDOW 

Source
pub const SAMPLE_WINDOW: usize = 256;
Expand description

Ring capacity shared by every phase below – “the last 256 ticks,” never an average across the process lifetime. At the ~10ms drive-loop cadence this is a little over 2.5 seconds of tick history, enough to catch a transient stall without growing unbounded.