Registry / testing / time-test

time-test

JSON →
library0.3.0rscratesunverified

Measure how long your test cases take with one simple macro.

# Cargo.toml [dependencies] time-test = "0.3.0"
INSTALL
IMPORT
SIG · TIME-TEST
T
time-test
testingrustv0.3.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.

time_test
use time_test::time_test;

Measure test duration with the time_test macro

use time_test::time_test; #[test] fn my_test() { time_test!(); std::thread::sleep(std::time::Duration::from_secs(1)); // test body }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
time-test — cargo add time-test · libregistry