mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
fix CStopWatch::start() return value to keep the compability
This commit is contained in:
@@ -66,7 +66,7 @@ CStopWatch::~CStopWatch()
|
|||||||
unsigned long CStopWatch::start()
|
unsigned long CStopWatch::start()
|
||||||
{
|
{
|
||||||
::clock_gettime(CLOCK_MONOTONIC, &m_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()
|
unsigned int CStopWatch::elapsed()
|
||||||
|
|||||||
Reference in New Issue
Block a user