solana_measure

Macro meas_dur

Source
macro_rules! meas_dur {
    ($expr:expr) => { ... };
}
Expand description

Measures how long it takes to execute an expression, and returns a Duration

ยงExamples

let (result, duration) = meas_dur!(meow(1, 2) + 3);