diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2017-12-22 20:57:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-22 20:57:29 +0100 |
commit | 3f8b269b72c75a2cd42d6b99d5622328ac76e3e2 (patch) | |
tree | dd80e15e9d6559967335d42ad07ba64a6e4d35da /xmrstak/misc/telemetry.cpp | |
parent | 8f8907254707c6d8bfcb970c130b9be302e27d2d (diff) | |
parent | da1da53fae61bf916924233c5198ebf7b2533f73 (diff) | |
download | xmr-stak-3f8b269b72c75a2cd42d6b99d5622328ac76e3e2.zip xmr-stak-3f8b269b72c75a2cd42d6b99d5622328ac76e3e2.tar.gz |
Merge pull request #664 from fireice-uk/topic-fix-clock
Make sure we are using a steady clock
Diffstat (limited to 'xmrstak/misc/telemetry.cpp')
-rw-r--r-- | xmrstak/misc/telemetry.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmrstak/misc/telemetry.cpp b/xmrstak/misc/telemetry.cpp index c5cce23..738d287 100644 --- a/xmrstak/misc/telemetry.cpp +++ b/xmrstak/misc/telemetry.cpp @@ -22,12 +22,12 @@ */ #include "telemetry.hpp" +#include "xmrstak/net/msgstruct.hpp" #include <cmath> #include <cstring> #include <chrono> - namespace xmrstak { @@ -49,8 +49,7 @@ telemetry::telemetry(size_t iThd) double telemetry::calc_telemetry_data(size_t iLastMilisec, size_t iThread) { - using namespace std::chrono; - uint64_t iTimeNow = time_point_cast<milliseconds>(high_resolution_clock::now()).time_since_epoch().count(); + uint64_t iTimeNow = get_timestamp_ms(); uint64_t iEarliestHashCnt = 0; uint64_t iEarliestStamp = 0; |