Skip to main content

timed_operation

Macro timed_operation 

Source
macro_rules! timed_operation {
    ($name:expr, $($key:ident = $value:expr),*, $block:block) => { ... };
}
Expand description

Macro for structured logging with performance tracking

§Example

use thread_flow::monitoring::logging::timed_operation;

timed_operation!("parse_file", file = "src/main.rs", {
    // Operation code here
    parse_rust_file(file)?;
});
// Automatically logs duration when complete