timeit
timeit copied to clipboard
Timing macros for Rust modelled after Python's timeit
Hey @gustavla. I like `timeit`, although it is a small crate, I think there are a couple of things that could improve, PRs are stale right now so I assume...
Add macro `tdbg!`, that is similar to `dbg!()`, but instead of outputting the value to stdout, measures the time it took for the inner expression took to be computed. So...
Use full path inside the macro to avoid forcing `use timeit::*`
similar to the other PR but uses the more modern `Duration::as_secs_f64` and adds a test