Macro ibc_relayer::time [−][src]
Measure the time until the current scope ends.
Only enabled when the "profiling" 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