[][src]Attribute Macro logging_timer::time

#[time]

Instruments the function with a timer!, which logs a message at the end of execution including the elapsted time. The attribute accepts a single optional argument to specify the log level. The levels are the same as those used by the log crate (error, warn, info, debug and trace) and defaults to "debug". Example: #[time("info")]. You can also specify "never" to completely disable the instrumentation at compile time.