Registry / utility / trice
library0.4.0rscratesunverified

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

# Cargo.toml [dependencies] trice = "0.4.0"
INSTALL
IMPORT
SIG · TRICE
T
trice
utilityrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Instant
use trice::Instant;

Measures elapsed time using trice::Instant.

use trice::Instant; fn main() { let start = Instant::now(); // ... do something ... let elapsed = start.elapsed(); println!("Elapsed: {:?}", elapsed); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
34
Resources
trice — cargo add trice · libregistry