# Timing
[](https://github.com/freergit/timing/actions/workflows/ci.yml)
[](https://github.com/freergit/timing/blob/main/LICENSE.txt)
Easily measure executable time of a code block in human readable form. A rdtsc variant is also available for x86_64 architectures.
```rust
});
let (val, time) = timing_return(|| {
println!("A fn that takes a few micros");
5
});
let counter = timing_rdtsc(|| {
println!("...");
});
42
});
```