swc_timerMacro timer
source macro_rules! timer {
($($args:tt)*) => { ... };
}
Expand description
Creates a timer. For input arguments, see [tracing::span].
§Convention
The string passed to timer!
should start with a verb.
§Example usage
use swc_timer::timer;
let _timer = timer!("");
§With arguments
use swc_timer::timer;
let arg = "path";
let _timer = timer!("bundle", path = arg);