timed

Attribute Macro timed 

Source
#[timed]
Expand description

Logs the time elapsed for the body of the target function for each call.

use micro_timer::timed;

#[timed]  // Can only be used on functions
struct Thing;
use micro_timer::timed;

#[timed]  // Can only be used on sync functions
async fn func() {}