# Tempor - Collection of tempo related utilities for Rust
This crate contains some utilities for dealing with tempo in Rust.
Currently only the tempo tap utility but more to come.
## Tapper
- Simple utility for tapping tempo. Create a new tapper and call `tap()` which eventually returns `Some(f64)` representing the BPM.
```rust
use std::thread;
use std::time::Duration;
use tempor::Tapper;
fn main() {
let mut tapper = Tapper::new(4, Duration::from_secs(3)).unwrap();
loop {
match tapper.tap() {
Some(v) => {
println!("BPM: {}", v);
}
None => {}
};
thread::sleep(Duration::from_millis(500));
}
}
```