Crate time_tick

Source
Expand description

§Time Tick

time-tick is a Rust crate designed to manage and calculate time intervals for game loops. It provides a simple interface to track elapsed time and determine how many ticks should be processed in a single update cycle. This is particularly useful in games or simulations that require consistent timing for updates and actions.

§Features

  • Track time intervals for game updates.
  • Specify tick durations and maximum ticks per update.
  • Reset and adjust tick timing dynamically.

§Usage

To use this crate, add the following to your Cargo.toml:

[dependencies]
time-tick = "0.1" // Replace with the latest version

Structs§

TimeTick
A struct to manage and calculate the number of ticks for a game loop based on elapsed time.