This commit is contained in:
sxyazi 2025-03-05 14:42:41 +08:00
parent 821296f5ac
commit 9ff15156e5
No known key found for this signature in database

View file

@ -1,10 +1,10 @@
#[macro_export]
macro_rules! time {
($expr:expr) => {
time!($expr, stringify!($expr))
$crate::time!(stringify!($expr), $expr)
};
($label:expr, $expr:expr) => {
time!($expr, "{}", $label)
$crate::time!($expr, "{}", $label)
};
($expr:expr, $fmt:expr, $($args:tt)*) => {{
if tracing::enabled!(tracing::Level::DEBUG) {