From 24a582016e7d1c23eb38e582ae9628aa8441a8e4 Mon Sep 17 00:00:00 2001
From: TheJackiMonster <thejackimonster@gmail.com>
Date: Tue, 19 Jul 2022 15:17:48 +0200
Subject: [PATCH] Added output for time

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
---
 projects/fire_works/src/main.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/projects/fire_works/src/main.cpp b/projects/fire_works/src/main.cpp
index acc2d147..ebfa88d7 100644
--- a/projects/fire_works/src/main.cpp
+++ b/projects/fire_works/src/main.cpp
@@ -656,8 +656,10 @@ int main(int argc, const char **argv) {
 		current = next;
 		
 		float time_values [2];
-		time_values[0] = static_cast<float>(0.000001 * static_cast<double>(time.count()));
-		time_values[1] = static_cast<float>(0.000001 * static_cast<double>(deltatime.count()));
+		time_values[0] = 0.000001f * static_cast<float>(time.count());
+		time_values[1] = 0.000001f * static_cast<float>(deltatime.count());
+		
+		std::cout << time_values[0] << " " << time_values[1] << std::endl;
 		
 		auto cmdStream = core.createCommandStream(vkcv::QueueType::Graphics);
 		
-- 
GitLab