Registry / utility / devtimer

devtimer

JSON →
library4.0.1rscratesunverified

A simple library for benchmarking code with easy-to-use timing utilities.

# Cargo.toml [dependencies] devtimer = "4.0.1"
INSTALL
IMPORT
SIG · DEVTIMER
D
devtimer
utilityrustv4.0.1
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.

SimpleTimer
use devtimer::SimpleTimer;

Times a code block using SimpleTimer.

use devtimer::SimpleTimer; fn main() { let mut timer = SimpleTimer::new(); timer.start(); std::thread::sleep(std::time::Duration::from_secs(1)); timer.stop(); println!("Elapsed: {:?}", timer.elapsed()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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