Skip to content

A simple timing proc-macro

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license-apache
MIT
license-mit
Notifications You must be signed in to change notification settings

mainrs/time-it-rs

time-it-rs

A simple timing proc-macro.

Usage

use time_it::time_it;

#[time_it]
fn test(a: i16, b: String) -> Vec<u64> {
    todo!()
}

This will log the following message to your terminal:

$ cargo run
test(i16, String) -> Vec<u64>: <your execution time>

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A simple timing proc-macro

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license-apache
MIT
license-mit

Code of conduct

Stars

Watchers

Forks

Sponsor this project