Macro ibc_relayer::time [−][src]
macro_rules! time { ($($arg:tt)*) => { ... }; }
Expand description
Measure the time until the current scope ends.
Only enabled when the “profiling” feature is enabled.
Example
use ibc_relayer::time; time!("full scope"); let x = { time!("inner {}", "scope"); 42 // "inner scope" timer ends here }; // "full scope" timer ends here