4 releases (2 breaking)
0.3.1 | Mar 26, 2023 |
---|---|
0.3.0 | Mar 8, 2023 |
0.2.0 | Jan 10, 2023 |
0.1.0 | Feb 17, 2022 |
#126 in Date and time
7,775 downloads per month
Used in 23 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
~40K SLoC