#timer #webassembly

wasm-timer

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

10 releases

0.2.5 Aug 31, 2020
0.2.4 Nov 20, 2019
0.2.2 Oct 10, 2019
0.2.1 Aug 29, 2019
0.1.1 Apr 18, 2019

#49 in WebAssembly

Download history 72805/week @ 2023-11-02 72068/week @ 2023-11-09 74522/week @ 2023-11-16 73338/week @ 2023-11-23 70763/week @ 2023-11-30 70367/week @ 2023-12-07 60408/week @ 2023-12-14 37090/week @ 2023-12-21 35698/week @ 2023-12-28 63745/week @ 2024-01-04 65574/week @ 2024-01-11 79569/week @ 2024-01-18 77945/week @ 2024-01-25 68426/week @ 2024-02-01 81082/week @ 2024-02-08 70925/week @ 2024-02-15

312,848 downloads per month
Used in 649 crates (72 directly)

MIT license

75KB
1.5K SLoC

Wasm-timer

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 to implement their functionalities.

Dependencies

~1.1–3.5MB
~68K SLoC