Registry / utility / measure-time

measure-time

JSON →
library0.9.0rscratesunverified

Provides macros to measure the time until end of scope.

# Cargo.toml [dependencies] measure_time = "0.9.0"
INSTALL
IMPORT
SIG · MEASURE-TIME
M
measure-time
utilityrustv0.9.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.

measure_time
use measure_time::measure_time;

Measure the duration of a scope and print it.

use measure_time::measure_time; fn main() { measure_time!("operation"); std::thread::sleep(std::time::Duration::from_millis(100)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
measure-time — cargo add measure-time · libregistry