Skip to content

Commit

Permalink
Fix time display
Browse files Browse the repository at this point in the history
  • Loading branch information
mbStavola committed Feb 15, 2021
1 parent bdb7261 commit bdade6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ version = "0.7.3"
features = ["small_rng"]

[profile.release]
debug = true
#debug = true
lto = "thin"
codegen-units = 1
15 changes: 3 additions & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ fn main() {
gen_world(&mut rng, tracer_config.world_config(), time_start, time_end)
};

println!(
"End world gen-- took {} ms",
world_gen_start.elapsed().as_millis()
);
println!("End world gen-- took {:.2?}", world_gen_start.elapsed());

let tracing_start = Instant::now();
println!("Start tracing");
Expand All @@ -94,18 +91,12 @@ fn main() {
use_bounding_volume,
);

println!(
"End tracing-- took {} ms",
tracing_start.elapsed().as_millis()
);
println!("End tracing-- took {:.2?}", tracing_start.elapsed());

let ppm_start = Instant::now();
println!("Start ppm creation");

let output_path = tracer_config.output_config().output_path();
ppm::create(output_path, screen_width, screen_height, &buffer);
println!(
"End ppm creation-- took {} ms",
ppm_start.elapsed().as_millis()
);
println!("End ppm creation-- took {:.2?}", ppm_start.elapsed());
}

0 comments on commit bdade6f

Please sign in to comment.