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
Download history 339/week @ 2024-09-05 683/week @ 2024-09-12 399/week @ 2024-09-19 274/week @ 2024-09-26 507/week @ 2024-10-03 471/week @ 2024-10-10 468/week @ 2024-10-17 305/week @ 2024-10-24 346/week @ 2024-10-31 336/week @ 2024-11-07 573/week @ 2024-11-14 791/week @ 2024-11-21 840/week @ 2024-11-28 748/week @ 2024-12-05 585/week @ 2024-12-12 236/week @ 2024-12-19

2,520 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
~45K SLoC