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 |
#563 in WebAssembly
22,553 downloads per month
Used in 92 crates
(13 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::Instantin normal environments
Dependencies
~0–2.3MB
~42K SLoC