Macro aleo_std_timer::timer [−][src]
macro_rules! timer {
($name : expr) => { ... };
($name : expr, $format : tt) => { ... };
($name : expr, $format : tt, $($arg : expr), *) => { ... };
}
Expand description
Initializes a timer that logs a start and finish message.
Examples
Note that when specifying the log level you must use a semi-colon as a separator, this is to ensure disambiguous parsing of the macro arguments.
use aleo_std_timer::timer;
let _tmr1 = timer!("FIND_FILES");
let _tmr2 = timer!("FIND_FILES", "Found {} files", 42);