Browse Source

Pretty print latency

master
Andreas Linz 5 years ago
parent
commit
3ba194086d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/sine.rs

+ 1
- 1
examples/sine.rs View File

@ -75,7 +75,7 @@ fn main() {
out.set_latency(sample_rate as f64/BUF_SIZE as f64);
match out.latency() {
Ok(latency) => println!("SW latency: {}", latency),
Ok(latency) => println!("SW latency: {:4.2}ms", latency * 1000.0),
Err(err) => println!("err: {}", err),
}
let layout = out.layout();

Loading…
Cancel
Save