Registry / utility / coarsetime

coarsetime

JSON →
library0.1.37rscratesunverified

A time and duration crate optimized for speed, using coarse-grained timestamps.

# Cargo.toml [dependencies] coarsetime = "0.1.37"
INSTALL
IMPORT
SIG · COARSETIME
C
coarsetime
utilityrustv0.1.37
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 coarsetime::Instant;

Measures elapsed time with coarse granularity.

use coarsetime::Instant; let start = Instant::now(); // ... do work ... let elapsed = start.elapsed(); println!("Elapsed: {:?}", elapsed);
Debug
Known issues
gotchaCoarse time may have lower resolution (e.g., milliseconds) compared to std::time::Instant.
fix
Use `coarsetime::Duration` for compatibility; check resolution with `Instant::resolution()`.
affects: *
Upgrade
Version history
0.1.37latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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