Crate tick_id

Source
Expand description

The TickId type represents a specific tick in a deterministic simulation.

A tick typically corresponds to a duration of 16 ms or 32 ms, but it can denote any positive integer time period, excluding zero. The TickId is implemented as a u32, allowing for a wide range of tick values.

§Example

use tick_id::TickId;

let tick_id = TickId::new(1);
println!("Tick ID: {}", tick_id);

§Operations

The TickId type supports addition and subtraction operations, allowing for easy manipulation of tick values. Overflow and underflow are checked during arithmetic operations to ensure safety.

Structs§

TickId
A unique identifier for a specific tick in a deterministic simulation.