Skip to main content

Module clock

Module clock 

Source
Expand description

Ported from Arc (MIT) © 2026 Elia Kuratli Global motion clock supporting deterministic GPUI test scheduling and gallery 0.25x slow-motion.

Structs§

MotionClock
Global monotonic motion clock that scales elapsed wall/test-scheduler time by time_scale.

Functions§

motion_now
Returns the current scaled monotonic time in seconds for animations.
set_time_scale
Sets the global motion time scale (e.g., 0.25 for gallery slow-mo).
time_scale
Reads the current motion time scale (1.0 normal, 0.25 slow motion).