mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
6b96a3d8ed
swc_timer: - Add `Timer`. - Add `timer!()`. node: - Enable logging.
12 lines
166 B
Rust
12 lines
166 B
Rust
use swc_timer::timer;
|
|
|
|
#[test]
|
|
fn logging() {
|
|
testing::run_test(false, |_, _| {
|
|
let _timer = timer!("operation");
|
|
|
|
Ok(())
|
|
})
|
|
.unwrap();
|
|
}
|