https://github.com/imp/easytiming-rs
Mirror of the upstream
https://github.com/imp/easytiming-rs
Last synced: over 1 year ago
JSON representation
Mirror of the upstream
- Host: GitHub
- URL: https://github.com/imp/easytiming-rs
- Owner: imp
- License: apache-2.0
- Created: 2017-08-30T21:53:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-20T05:46:36.000Z (over 8 years ago)
- Last Synced: 2025-01-21T17:24:42.524Z (over 1 year ago)
- Language: Rust
- Homepage: https://gitlab.com/imp/easytiming-rs
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# easytiming
Easy timing for functions, code blocks etc in Rust
## Quick start
Really quick way to start using `easytiming` is like this:
```rust
extern crate easytiming;
use easytiming::Timing;
fn do_something() {
let _t = Timing::new("do_something() function");
...
}
```
This will produce the next output when run:
```
"do_something() function" was running for 410420 ns
```