Crate timed
See all timed's items
Macros for measuring function execution.
#[timed::timed] fn add(x: i32, y: i32) -> i32 { x + y }
It will output:
// function=add duration=112ns
Times the execution of the function