A simple timer.
```toml
rusty_timer = "0.11.3" ```
```rust // main.rs use rusty_timer::Timer;
fn main() { // Create a timer ahead of time let mut timer = Timer::frommillis(500); // In your game- or event-loop, updated the timer loop { let delta = Duration::frommillis(16); timer.update(delta); if timer.ready { break; } } } ```
rusty_time
was part of [rusty_engine
] up until after version 0.11
.
All contributions are assumed to be dual-licensed under MIT/Apache-2.
Distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See license/APACHE and license/MIT.
If you like rusty_time
, please consider [sponsoring me] on GitHub. 💖