summaryrefslogtreecommitdiffstats
path: root/src/Stopwatch.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-12-20 22:10:24 +0100
committerMattes D <github@xoft.cz>2019-12-28 22:43:35 +0100
commit2d6f6a574d8dd6a94dc13cb51628626d99c1853a (patch)
tree450b60da6dba1b8f7d603f6d3f2323235a0d83b7 /src/Stopwatch.h
parentMoved ProtocolBlockTypePalette functionality into BlockTypePalette. (diff)
downloadcuberite-2d6f6a574d8dd6a94dc13cb51628626d99c1853a.tar
cuberite-2d6f6a574d8dd6a94dc13cb51628626d99c1853a.tar.gz
cuberite-2d6f6a574d8dd6a94dc13cb51628626d99c1853a.tar.bz2
cuberite-2d6f6a574d8dd6a94dc13cb51628626d99c1853a.tar.lz
cuberite-2d6f6a574d8dd6a94dc13cb51628626d99c1853a.tar.xz
cuberite-2d6f6a574d8dd6a94dc13cb51628626d99c1853a.tar.zst
cuberite-2d6f6a574d8dd6a94dc13cb51628626d99c1853a.zip
Diffstat (limited to 'src/Stopwatch.h')
-rw-r--r--src/Stopwatch.h6
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: