Remove legacy upTime() function

This commit is contained in:
Vinnie Falco
2013-05-25 15:49:12 -07:00
parent fb8c370d70
commit 4e8d4c28c2
12 changed files with 43 additions and 36 deletions

View File

@@ -8,8 +8,6 @@
#include "utils.h"
extern int upTime();
// Monitors load levels and response times
class LoadMonitor
@@ -27,9 +25,16 @@ protected:
void update();
public:
LoadMonitor() : mCounts(0), mLatencyEvents(0), mLatencyMSAvg(0), mLatencyMSPeak(0),
mTargetLatencyAvg(0), mTargetLatencyPk(0)
{ mLastUpdate = upTime(); }
LoadMonitor()
: mCounts(0)
, mLatencyEvents(0)
, mLatencyMSAvg(0)
, mLatencyMSPeak(0)
, mTargetLatencyAvg(0)
, mTargetLatencyPk(0)
{
mLastUpdate = UptimeTimer::getInstance().getElapsedSeconds ();
}
void addCount();
void addLatency(int latency);