Time examples
The engine's time examples: what each one shows, whether it runs in a browser and the command that runs it.
Time, virtual time, timers and the fixed timestep. There are 3 examples on this page. For the concepts behind them, see Time.
Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.
Examples#
| Example | What it shows | Web | Run |
|---|---|---|---|
| Time handling | Explains how Time is handled in ECS | No | cargo run --example time |
| Timers | Illustrates ticking Timer resources inside systems and handling their state | No | cargo run --example timers |
| Virtual time | Shows how Time<Virtual> can be used to pause, resume, slow down and speed up a game. | No | cargo run --example virtual_time |