diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-12-25 08:03:44 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-12-25 08:03:44 -0800 |
commit | d519abf0c1c1e25402543e39d2affbd73f8c69b2 (patch) | |
tree | e232e19ecabe255cd9979e5b9ad0ea7a23b5b4b4 /core/SystemStatus.h | |
parent | ce94137dd62684916a323b091cac8c125535d3cd (diff) | |
parent | edcf00043593e125ccc798a70fb6ce2c9318444b (diff) | |
download | gps-d519abf0c1c1e25402543e39d2affbd73f8c69b2.tar.gz |
Merge "Replace wall time"
Diffstat (limited to 'core/SystemStatus.h')
-rw-r--r-- | core/SystemStatus.h | 6 |
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() { }; |