4 releases (2 breaking)
new 0.3.1 | Mar 26, 2023 |
---|---|
0.3.0 | Mar 8, 2023 |
0.2.0 | Jan 10, 2023 |
0.1.0 | Feb 17, 2022 |
#300 in WebAssembly
5,140 downloads per month
Used in 8 crates
(via surrealdb)
9KB
56 lines
Trice
Trice is a minimal replacement for std::time::Instant
that works in WASM for the web and Node.js, enabling time measurement and performance calculations.
Features
- Replacement for
std::time::Instant
- Uses
performance.now()
in WASM environments - Uses
std::time::Instant
in normal environments
Dependencies
~0–2MB
~39K SLoC