From 1ef21b5b4ffb2610d977516c90c9383c86d8d52e Mon Sep 17 00:00:00 2001 From: Shawn Chain Date: Wed, 4 Jul 2018 21:28:17 +0800 Subject: [PATCH] fix CStopWatch::start() return value to keep the compability --- StopWatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StopWatch.cpp b/StopWatch.cpp index 154e62d..37925d4 100644 --- a/StopWatch.cpp +++ b/StopWatch.cpp @@ -66,7 +66,7 @@ CStopWatch::~CStopWatch() unsigned long CStopWatch::start() { ::clock_gettime(CLOCK_MONOTONIC, &m_start); - return m_start.tv_sec; + return (m_start.tv_sec * 1000UL) + (m_start.tv_nsec / 1000000UL); } unsigned int CStopWatch::elapsed()