#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

#11 in #timed

Download history 519/week @ 2023-12-04 396/week @ 2023-12-11 790/week @ 2023-12-18 349/week @ 2023-12-25 432/week @ 2024-01-01 640/week @ 2024-01-08 707/week @ 2024-01-15 720/week @ 2024-01-22 925/week @ 2024-01-29 695/week @ 2024-02-05 510/week @ 2024-02-12 500/week @ 2024-02-19 395/week @ 2024-02-26 459/week @ 2024-03-04 455/week @ 2024-03-11 585/week @ 2024-03-18

1,937 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
~41K SLoC