5 releases (3 breaking)
0.4.0 | Jan 4, 2024 |
---|---|
0.3.1 | Mar 26, 2023 |
0.3.0 | Mar 8, 2023 |
0.2.0 | Jan 10, 2023 |
0.1.0 | Feb 17, 2022 |
#272 in WebAssembly
18,656 downloads per month
Used in 74 crates
(12 directly)
9KB
64 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–2.3MB
~43K SLoC