#instant #measure #performance #time

trice

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

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

Download history 3159/week @ 2023-07-19 3112/week @ 2023-07-26 2034/week @ 2023-08-02 2001/week @ 2023-08-09 1895/week @ 2023-08-16 1851/week @ 2023-08-23 2117/week @ 2023-08-30 2262/week @ 2023-09-06 1782/week @ 2023-09-13 1534/week @ 2023-09-20 1945/week @ 2023-09-27 2024/week @ 2023-10-04 1712/week @ 2023-10-11 2269/week @ 2023-10-18 1966/week @ 2023-10-25 1536/week @ 2023-11-01

7,775 downloads per month
Used in 23 crates (via surrealdb)

Apache-2.0

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.

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