Crates.io | tap_tempo |
lib.rs | tap_tempo |
version | 0.1.1 |
source | src |
created_at | 2022-04-17 23:32:55.095297 |
updated_at | 2023-12-27 11:19:57.287574 |
description | Calculate tempos by simply tapping |
homepage | |
repository | https://github.com/JosephTLyons/tap_tempo |
max_upload_size | |
id | 569620 |
size | 41,088 |
Calculate tempos by simply tapping
let mut tap_tempo = TapTempo::new();
let tempo = tap_tempo.tap();
assert!(tempo.is_none());
// After some time has passed ...
let tempo = tap_tempo.tap();
assert!(tempo.is_some());