[][src]Macro holochain_metrics::with_latency_publishing

macro_rules! with_latency_publishing {
    ($metric_prefix:expr, $publisher:expr, $f:expr, $($args:expr),* ) => { ... };
}

Wraps a standard rust function with latency timing that is published to $publisher upon completion of $f($args,*). The latency metric name will be "$metric_prefix.latency".