exec_time
Attribute macro for printing function execution time.
Install
[]
= "0.1.4"
MSRV: Rust 1.88.
Example
use exec_time;
Time login: 102 ms
Options
print = "always": print in all builds. Default.print = "debug": print only in debug builds.print = "never": disable printing.prefix = "...": prepend a label before the function name.suffix = "...": append a label after the function name.
Custom Label
use exec_time;
Time user/lib::login::route: 102 ms