#time #instant #performance #nodejs #measure

trice

A minimal replacement for std::time::Instant that works in WASM for the web and Node.js

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

#102 in WebAssembly

Download history 1711/week @ 2023-12-23 2085/week @ 2023-12-30 3030/week @ 2024-01-06 4235/week @ 2024-01-13 4005/week @ 2024-01-20 3682/week @ 2024-01-27 3402/week @ 2024-02-03 4605/week @ 2024-02-10 5221/week @ 2024-02-17 4030/week @ 2024-02-24 3629/week @ 2024-03-02 3977/week @ 2024-03-09 4905/week @ 2024-03-16 4767/week @ 2024-03-23 4004/week @ 2024-03-30 4231/week @ 2024-04-06

18,492 downloads per month
Used in 47 crates (8 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–2MB
~40K SLoC