[−][src]Attribute Macro micro_timer::timed
#[timed]
Logs the time elapsed for the body of the target function for each call.
ⓘThis example deliberately fails to compile
use micro_timer::timed; #[timed] // Can only be used on functions struct Thing;
ⓘThis example deliberately fails to compile
use micro_timer::timed; #[timed] // Can only be used on sync functions async fn func() {}