1 unstable release

0.0.1 Oct 14, 2024

#23 in #elapsed-time

31 downloads per month
Used in 3 crates (via nimble-client)

MIT license

8KB

🕒 Time Tick

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

🚀 Features

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

📦 Installation

To use time-tick, add it as a dependency in your Cargo.toml:

[dependencies]
time-tick = "0.0.1"

lib.rs:

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

Dependencies

~105KB