Skip to main content

CLOCK_MAX_SLEW_NS

Constant CLOCK_MAX_SLEW_NS 

Source
pub(crate) const CLOCK_MAX_SLEW_NS: i128 = 1_000_000;
Expand description

Largest adjustment made in one window when slewing, in nanoseconds (1 ms).

The actual limit is the smaller of this and half the sample interval (see StreamClock::max_slew_ns), so an adjustment never makes timestamps go backwards or collide. One millisecond per minute follows crystal drift of up to about 16 ppm at 100 Hz, and a quarter millisecond (the limit at 2 kHz) up to about 4 ppm; MU1 measured about 2 ppm.