swc/crates/swc_timer/tests/timer.rs
Donny/강동윤 6b96a3d8ed
feat: Enable logging of timings (#2833)
swc_timer:
 - Add `Timer`.
 - Add `timer!()`.

node:
 - Enable logging.
2021-11-22 21:01:08 +09:00

12 lines
166 B
Rust

use swc_timer::timer;
#[test]
fn logging() {
testing::run_test(false, |_, _| {
let _timer = timer!("operation");
Ok(())
})
.unwrap();
}