async-tick

Usage

Add this to your Cargo.toml:

toml [dependencies] async-tick = "*"

```rust use core::time::Duration; asynctick::tick(); let now: u64 = asynctick::now();

asynctick::sleep(Duration::fromsecs(1)).await;

let interval = asynctick::interval(Duration::fromsecs(1)); while let Some(now) = interval.await{ // task } ```