An open API service indexing awesome lists of open source software.

https://github.com/nikkolasg/timed-rs

Simple macro to time any function
https://github.com/nikkolasg/timed-rs

Last synced: 2 months ago
JSON representation

Simple macro to time any function

Awesome Lists containing this project

README

        

# Timed macro

Use it like this
```rust
#[timed::timed_instrument(level="debug")]
fn my_long_method() {

}
```

and run
```bash
RUST_LOG=debug cargo run --release
```

and you'll see the log lines with the time in ms