log_execution_time

Attribute Macro log_execution_time 

Source
#[log_execution_time]
Expand description

A procedural macro to log the execution time of a function.

§Usage

Add #[log_execution_time] above a function to log its execution duration. The macro uses the log crate to log the timing information.

§Example

use your_crate_name::log_execution_time;

#[log_execution_time]
fn example_function() {
    // Your code here
}

When example_function is called, its execution time will be logged.