#instant #duration #wasmtime #time-instant

zduny-wasm-timer

Abstraction over std::time::Instant and futures-timer that works on WASM

4 releases

0.2.9 Mar 17, 2025
0.2.8 Sep 14, 2023
0.2.7 Nov 1, 2022
0.2.6 Nov 1, 2022

#114 in WebAssembly

Download history 157/week @ 2024-12-12 100/week @ 2024-12-19 70/week @ 2024-12-26 202/week @ 2025-01-02 266/week @ 2025-01-09 149/week @ 2025-01-16 181/week @ 2025-01-23 120/week @ 2025-01-30 228/week @ 2025-02-06 356/week @ 2025-02-13 195/week @ 2025-02-20 176/week @ 2025-02-27 127/week @ 2025-03-06 300/week @ 2025-03-13 198/week @ 2025-03-20 257/week @ 2025-03-27

906 downloads per month
Used in 3 crates

MIT license

77KB
1.5K SLoC

zduny-wasm-timer

Test Status Crate API

Exports the Instant, Delay, Interval and Timeout structs.

On non-WASM targets, this re-exports the types from tokio-timer. On WASM targets, this uses web-sys and js-sys to implement their functionalities.

Works in Web Workers.

https://crates.io/crates/zduny-wasm-timer

ko-fi

see also

wasm-bindgen

web-sys

js_sys

Dependencies

~1–8.5MB
~69K SLoC