Make a fast, monotonic timer.

This commit is contained in:
JoelKatz
2013-02-05 22:06:30 -08:00
parent fadceb072d
commit 8c36646b8c
3 changed files with 19 additions and 1 deletions

View File

@@ -1823,7 +1823,7 @@ Json::Value RPCHandler::doGetCounts(Json::Value jvRequest)
ret["dbKB"] = dbKB;
std::string uptime;
int s = theApp->getLoadManager().getUptime();
int s = upTime();
textTime(uptime, s, "year", 365*24*60*60);
textTime(uptime, s, "day", 24*60*60);
textTime(uptime, s, "hour", 24*60);