Expand description
Zero-allocation timer, stopwatch, and fixed-timestep accumulator.
Inspired by Bevy’s bevy_time (Timer, Stopwatch, and fixed step scheduling),
adapted for no_std microcontrollers. Works seamlessly with both f32 seconds
and core::time::Duration.
Structs§
- Fixed
Step Iter - Iterator yielding fixed timesteps for a frame.
- Fixed
Timestep - Accumulator for fixed-timestep game / physics loops (e.g. 50 Hz or 60 Hz).
- Stopwatch
- Tracks elapsed time with pause, reset, and accumulation controls.
- Timer
- A timer that tracks duration, progress fraction, completion, and repetition.