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")); }