Use the new uptime code. Replace slow, non-monotonic 'time(NULL)' calls

with fast, almost-always-monotonic 'upTime()' calls.
This commit is contained in:
JoelKatz
2013-02-05 22:31:26 -08:00
parent 8c36646b8c
commit 1808454983
10 changed files with 44 additions and 35 deletions

View File

@@ -2,7 +2,7 @@
void LoadMonitor::update()
{ // call with the mutex
time_t now = time(NULL);
int now = upTime();
if (now == mLastUpdate) // current
return;