function-timer 0.9.2

Macro that allow to time a function and emit a metric using metrics crate
Documentation
1
2
3
4
5
6
7
8
use function_timer::time;

struct Test {}

#[time(disable)]
impl Test {
    fn test() {}
}