Skip to content

Commit

Permalink
Add temporary const to disable time printing for debug stages
Browse files Browse the repository at this point in the history
  • Loading branch information
iMilchshake committed Aug 14, 2024
1 parent c8b84f2 commit 5371b80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ use crate::{

use macroquad::color::{colors, Color};

const PRINT_TIMES: bool = false;

pub fn print_time(timer: &Timer, message: &str) {
println!("{}: {:?}", message, timer.elapsed());
// TODO: add cli flag for this
if PRINT_TIMES {
println!("{}: {:?}", message, timer.elapsed());
}
}

pub struct Generator {
Expand Down

0 comments on commit 5371b80

Please sign in to comment.