Registry / utility / minstant

minstant

JSON →
library0.1.7rscratesunverified

A drop-in replacement for `std::time::Instant` that measures time with high performance and high accuracy powered by TSC.

# Cargo.toml [dependencies] minstant = "0.1.7"
INSTALL
IMPORT
SIG · MINSTANT
M
minstant
utilityrustv0.1.7
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 minstant::Instant;

Measures elapsed time using a high-performance TSC-based instant.

use minstant::Instant; fn main() { let start = Instant::now(); // ... some work ... let elapsed = start.elapsed(); println!("Elapsed: {:?}", elapsed); }
Debug
Known issues
gotchaTSC may not be monotonic on all systems; fallback to system time may occur.
fix
Ensure the platform supports invariant TSC or handle potential non-monotonic behavior.
affects: >=0.1.0
Upgrade
Version history
0.1.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
minstant — cargo add minstant · libregistry