aboutsummaryrefslogtreecommitdiffstats
path: root/examples/process_full.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/process_full.rs')
-rw-r--r--examples/process_full.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/process_full.rs b/examples/process_full.rs
index c62bcb2..a49af29 100644
--- a/examples/process_full.rs
+++ b/examples/process_full.rs
@@ -23,7 +23,14 @@ fn draw_frames(frames: &[Vec<u8>]) {
fn main() {
let frames: Vec<Vec<u8>> = read_frames().collect();
- for _ in 1..10 {
+ let start = std::time::Instant::now();
+ let mut i = 0;
+ loop {
+ i += 1;
draw_frames(&frames);
+ if (std::time::Instant::now() - start).as_secs() >= 30 {
+ break;
+ }
}
+ eprintln!("{} iterations", i);
}