From c5a62eefa43bc5516c4d07af1545488f7f984efd Mon Sep 17 00:00:00 2001 From: Boromatic Date: Wed, 20 Jan 2016 18:01:55 +0100 Subject: [PATCH] Update StopWatch.cpp solved Linux timer problems --- StopWatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StopWatch.cpp b/StopWatch.cpp index beb4bbe..f3279b4 100644 --- a/StopWatch.cpp +++ b/StopWatch.cpp @@ -77,7 +77,7 @@ unsigned int CStopWatch::elapsed() } else { long temp = -m_start.tv_nsec / 1000000L; temp += (now.tv_sec - m_start.tv_sec) * 1000L; - temp += m_start.tv_nsec / 1000000L; + temp += now.tv_nsec / 1000000L; return temp; } }