diff options
Diffstat (limited to 'src/Stopwatch.h')
-rw-r--r-- | src/Stopwatch.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Stopwatch.h b/src/Stopwatch.h index b7c8e50c7..7676b3856 100644 --- a/src/Stopwatch.h +++ b/src/Stopwatch.h @@ -24,10 +24,8 @@ public: ~cStopwatch() { - #ifdef _DEBUG - auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now() - m_StartTime).count(); - LOGD("Stopwatch: %s took %.03f sec", m_Name.c_str(), static_cast<double>(duration) / 1000); - #endif // _DEBUG + auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now() - m_StartTime).count(); + LOG("Stopwatch: %s took %.03f sec", m_Name, static_cast<double>(duration) / 1000); } protected: |