Skip to main content

Module timing

Module timing 

Source
Expand description

Fixed-rate scheduling driven by the flight loop’s dt, for streams (telemetry, heartbeats) that run slower than the loop.

A tick rarely divides a stream’s period, so Every carries the leftover time into the next period instead of discarding it: a 10 Hz stream on a 60 Hz loop sends 10 times per second, not 60 / 7 ≈ 8.6. A gap longer than a period (a stalled tick) fires once and drops the backlog rather than bursting.

Structs§

Every
Fires on the first call, then once per interval of accumulated dt.