diff --git a/StopWatch.cpp b/StopWatch.cpp index f5b9aac..77d539d 100644 --- a/StopWatch.cpp +++ b/StopWatch.cpp @@ -78,7 +78,7 @@ unsigned int CStopWatch::elapsed() elapsed += now.tv_usec / 1000U; elapsed -= m_start.tv_usec / 1000U; - return (unsigned int)(b - a); + return elapsed; } #endif