#timed #macro #execution #time

timed_proc_macros

用于测量函数执行时间的宏(宏)

3 个不稳定版本

0.2.0 2020年12月12日
0.1.1 2020年10月18日
0.1.0 2020年10月16日

#timed 中排名第 14

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

每月下载量 1,909
2 个crate中使用(通过 timed

MIT/Apache

7KB
140

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!"))]

依赖关系

~2MB
~43K SLoC