aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 7226c8e..8f11bdd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -34,7 +34,7 @@ fn main() {
let timestamp = Instant::now();
cam.render();
addstr(&cam.buffer.to_string());
- addstr(&format!("\nRendered in {:?}\n", timestamp.elapsed()).to_string());
+ addstr(&format!("\nRendered in {:?} ({:.0} FPS)\n", timestamp.elapsed(), 1.0 / timestamp.elapsed().as_secs_f64()));
addstr(&format!("Camera: {:?}\n", cam.position));
addstr(&format!("Facing: {:?}\n", cam.direction));
addstr(&format!("Light: {:?}\n", cam.light));