tick-machine

Crates.iotick-machine
lib.rstick-machine
version0.5.0
sourcesrc
created_at2024-08-09 08:44:34.356652
updated_at2024-08-10 10:15:41.027937
descriptiontick calculator
homepage
repositoryhttps://github.com/Bruce0203/tick-machine
max_upload_size
id1330569
size3,377
(Bruce0203)

documentation

README

example

let tick = Duration::from_millis(50);
let mut tick = TickState::new(tick);
loop {
    tick.try_tick(|| {
        println!("tick per 50ms");
    });
}

Commit count: 0

cargo fmt