From 6429502fc50ad57de2454320eafbb84348553270 Mon Sep 17 00:00:00 2001 From: Sergio Acereda Date: Sat, 22 Jul 2017 23:30:36 +0200 Subject: [PATCH] Elapsed seconds not shown correctly --- code/Profiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Profiler.h b/code/Profiler.h index 40d436b52..96e898e6e 100644 --- a/code/Profiler.h +++ b/code/Profiler.h @@ -84,7 +84,7 @@ public: return; } - auto elapsedSeconds = std::chrono::system_clock::now() - regions[region]; + std::chrono::duration elapsedSeconds = std::chrono::system_clock::now() - regions[region]; DefaultLogger::get()->debug((format("END `"),region,"`, dt= ", elapsedSeconds.count()," s")); }