keyfork-qrcode: add framerate tracker

This commit is contained in:
Ryan Heywood 2025-05-10 15:01:22 -04:00
parent 2083eb216f
commit 18773d351c
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ fn dbg_elapsed(count: u64, instant: Instant) {
let elapsed = instant.elapsed().as_secs();
let framerate = count as f64 / elapsed as f64;
eprintln!("framerate: {count}/{elapsed} = {framerate}");
std::thread::sleep(std::time::Duration::from_secs(5));
}
#[derive(Debug)]