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

Download history 7025/week @ 2025-03-10 5666/week @ 2025-03-17 5201/week @ 2025-03-24 4894/week @ 2025-03-31 5952/week @ 2025-04-07 5289/week @ 2025-04-14 6090/week @ 2025-04-21 5405/week @ 2025-04-28 5309/week @ 2025-05-05 6853/week @ 2025-05-12 5310/week @ 2025-05-19 4454/week @ 2025-05-26 4666/week @ 2025-06-02 4804/week @ 2025-06-09 5948/week @ 2025-06-16 6792/week @ 2025-06-23

22,553 downloads per month
Used in 92 crates (13 directly)

Apache-2.0

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.

docs.rs Crates.io

Features

  • Replacement for std::time::Instant
  • Uses performance.now() in WASM environments
  • Uses std::time::Instant in normal environments

Dependencies

~0–2.3MB
~42K SLoC