Expand description
Ported from Arc (MIT) © 2026 Elia Kuratli Global motion clock supporting deterministic GPUI test scheduling and gallery 0.25x slow-motion.
Structs§
- Motion
Clock - 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.25for gallery slow-mo). - time_
scale - Reads the current motion time scale (
1.0normal,0.25slow motion).