macro_rules! time { ($timer: expr, $body: expr) => { ... }; }
Expand description
A convenience macro to wrap a block or an expression with a start / stop timer. Elapsed time is sent to the supplied statsd client after the computation has been performed. Expression result (if any) is transparently returned.