Browse Source

Merge pull request #1359 from sacereda/profilerLogging

Elapsed seconds not shown correctly
Alexander Gessler 8 years ago
parent
commit
96cb3f7140
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/Profiler.h

+ 1 - 1
code/Profiler.h

@@ -84,7 +84,7 @@ public:
             return;
         }
 
-        auto elapsedSeconds = std::chrono::system_clock::now() - regions[region];
+        std::chrono::duration<double> elapsedSeconds = std::chrono::system_clock::now() - regions[region];
         DefaultLogger::get()->debug((format("END   `"),region,"`, dt= ", elapsedSeconds.count()," s"));
     }