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
- Host: GitHub
- URL: https://github.com/nikkolasg/timed-rs
- Owner: nikkolasg
- Created: 2025-03-07T19:52:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T20:02:11.000Z (3 months ago)
- Last Synced: 2025-03-07T20:33:09.607Z (3 months ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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