Skip to main content

effect_clock_seconds

Function effect_clock_seconds 

Source
pub fn effect_clock_seconds() -> f32
Expand description

Seconds since the effect clock’s origin — the clock EffectQuad::time carries. The origin is set_effect_clock_origin’s, or the first read.

Deliberately process-wide and monotonic rather than per-window: an f32 has ~7 significant digits, so anchoring at zero keeps sub-millisecond precision for the first couple of hours instead of quantising to ~64 ms the way a UNIX-epoch value would.