[][src]Crate timed

Timed

Macros for measuring function execution.

#[timed::timed]
fn add(x: i32, y: i32) -> i32 {
    x + y
}

It will output:

// function=add duration=112ns

Attribute Macros

timed

Times the execution of the function