Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 239 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 239 Bytes

Usage

  • Enable "timer" feature in Cargo.toml
  • Specify the feature before module (#[cfg(feature="timer")]) Snippet for using the macros:
let _time = timer_start!(|| "Benchmarking my function");
<...>
timer_end!(_time);