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 {}

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