Registry / utility / instant

instant

JSON →
library0.1.13rscratesunverified

Unmaintained, consider using web-time instead - A partial replacement for std::time::Instant that works on WASM to.

# Cargo.toml [dependencies] instant = "0.1.13"
INSTALL
IMPORT
SIG · INSTANT
I
instant
utilityrustv0.1.13
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 instant::Instant;

Measures elapsed time using Instant, compatible with WASM.

use instant::Instant; fn main() { let start = Instant::now(); // ... do something ... let elapsed = start.elapsed(); println!("Elapsed: {:?}", elapsed); }
Debug
Known issues
gotchaCrate is unmaintained; consider using web-time instead.
fix
Replace with web-time crate for ongoing support.
affects: >=0.0.0
Upgrade
Version history
0.1.13latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
instant — cargo add instant · libregistry