summaryrefslogtreecommitdiff
path: root/core/SystemStatus.h
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-12-25 08:03:44 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-12-25 08:03:44 -0800
commitd519abf0c1c1e25402543e39d2affbd73f8c69b2 (patch)
treee232e19ecabe255cd9979e5b9ad0ea7a23b5b4b4 /core/SystemStatus.h
parentce94137dd62684916a323b091cac8c125535d3cd (diff)
parentedcf00043593e125ccc798a70fb6ce2c9318444b (diff)
downloadgps-d519abf0c1c1e25402543e39d2affbd73f8c69b2.tar.gz
Merge "Replace wall time"
Diffstat (limited to 'core/SystemStatus.h')
-rw-r--r--core/SystemStatus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/SystemStatus.h b/core/SystemStatus.h
index ae6c3e1..e4d06da 100644
--- a/core/SystemStatus.h
+++ b/core/SystemStatus.h
@@ -70,10 +70,10 @@ public:
static const uint32_t maxItem = 5;
SystemStatusItemBase() {
- timeval tv;
- gettimeofday(&tv, NULL);
+ struct timespec tv;
+ clock_gettime(CLOCK_MONOTONIC, &tv);
mUtcTime.tv_sec = tv.tv_sec;
- mUtcTime.tv_nsec = tv.tv_usec *1000ULL;
+ mUtcTime.tv_nsec = tv.tv_nsec;
mUtcReported = mUtcTime;
};
virtual ~SystemStatusItemBase() { };