2 releases
0.1.1 | Oct 15, 2023 |
---|---|
0.1.0 | Oct 15, 2023 |
#407 in Profiling
3KB
Instant Benchmark
Extremely simple and small Rust library for quickly timing a closure
Usage
use ibench::{time, print_time};
fn function() {
for _ in 0..100_000_000 {}
}
time(function); // returns duration
print_time(function) // prints time in human-readable format
LICENSE
Copying and distribution of this file, with or without modification, are permitted in any medium provided you do not contact the author about the file or any problems you are having with the file.