Skip to main content

rlg_time_it

Macro rlg_time_it 

Source
macro_rules! rlg_time_it {
    ($action:expr, $block:block) => { ... };
}
Expand description

Measure wall-clock latency of a block and emit a Logfmt metric.

Captures Instant::now() before the block, computes elapsed microseconds after, and fires a Logfmt log with latency_us.