summaryrefslogtreecommitdiffstats
path: root/xmrstak/misc/telemetry.cpp
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-12-22 18:08:30 +0000
committerfireice-uk <fireice-uk@users.noreply.github.com>2017-12-22 18:08:30 +0000
commitda1da53fae61bf916924233c5198ebf7b2533f73 (patch)
tree44df71f5ae1f6bed68494dd00980e56a8f348c2a /xmrstak/misc/telemetry.cpp
parentbbba9467ad77f160295e3e38a91727952c66aa7d (diff)
downloadxmr-stak-da1da53fae61bf916924233c5198ebf7b2533f73.zip
xmr-stak-da1da53fae61bf916924233c5198ebf7b2533f73.tar.gz
Make sure we are using a steady clock
Diffstat (limited to 'xmrstak/misc/telemetry.cpp')
-rw-r--r--xmrstak/misc/telemetry.cpp5
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;
OpenPOWER on IntegriCloud