mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Update StopWatch.cpp
solved Linux timer problems
This commit is contained in:
@@ -77,7 +77,7 @@ unsigned int CStopWatch::elapsed()
|
|||||||
} else {
|
} else {
|
||||||
long temp = -m_start.tv_nsec / 1000000L;
|
long temp = -m_start.tv_nsec / 1000000L;
|
||||||
temp += (now.tv_sec - m_start.tv_sec) * 1000L;
|
temp += (now.tv_sec - m_start.tv_sec) * 1000L;
|
||||||
temp += m_start.tv_nsec / 1000000L;
|
temp += now.tv_nsec / 1000000L;
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user