#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

#16 in #timed

Download history 154/week @ 2024-05-21 407/week @ 2024-05-28 503/week @ 2024-06-04 345/week @ 2024-06-11 560/week @ 2024-06-18 483/week @ 2024-06-25 386/week @ 2024-07-02 633/week @ 2024-07-09 527/week @ 2024-07-16 281/week @ 2024-07-23 392/week @ 2024-07-30 801/week @ 2024-08-06 1056/week @ 2024-08-13 202/week @ 2024-08-20 275/week @ 2024-08-27 316/week @ 2024-09-03

2,077 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