trice

Crates.iotrice
lib.rstrice
version0.4.0
sourcesrc
created_at2022-02-17 07:07:31.081299
updated_at2024-01-04 21:40:42.035137
descriptionA minimal replacement for std::time::Instant that works in WASM for the web and Node.js.
homepagehttps://github.com/surrealdb/trice
repositoryhttps://github.com/surrealdb/trice
max_upload_size
id533933
size21,366
Tobie Morgan Hitchcock (tobiemh)

documentation

README

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
Commit count: 16

cargo fmt