#timed #macro #execution #time

macro timed_proc_macros

Macros to time function execution (Macros)

3 unstable releases

0.2.0 Dec 12, 2020
0.1.1 Oct 18, 2020
0.1.0 Oct 16, 2020

#14 in #timed

Download history 293/week @ 2024-03-13 1094/week @ 2024-03-20 518/week @ 2024-03-27 430/week @ 2024-04-03 804/week @ 2024-04-10 479/week @ 2024-04-17 429/week @ 2024-04-24 301/week @ 2024-05-01 258/week @ 2024-05-08 138/week @ 2024-05-15 177/week @ 2024-05-22 440/week @ 2024-05-29 451/week @ 2024-06-05 370/week @ 2024-06-12 545/week @ 2024-06-19 474/week @ 2024-06-26

1,909 downloads per month
Used in 2 crates (via timed)

MIT/Apache

7KB
140 lines

Macros for the timed crate


lib.rs:

Call this using #[timed]
It will print by default with `println!`
If you want to change the printer you can use #[timed(printer = "info!")]
or any other macro or function that takes in a String.`
#[timed(duration(printer = "println!"))]

Dependencies

~2MB
~43K SLoC