diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-12-22 18:08:30 +0000 |
---|---|---|
committer | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-12-22 18:08:30 +0000 |
commit | da1da53fae61bf916924233c5198ebf7b2533f73 (patch) | |
tree | 44df71f5ae1f6bed68494dd00980e56a8f348c2a /xmrstak/backend/amd/minethd.cpp | |
parent | bbba9467ad77f160295e3e38a91727952c66aa7d (diff) | |
download | xmr-stak-da1da53fae61bf916924233c5198ebf7b2533f73.zip xmr-stak-da1da53fae61bf916924233c5198ebf7b2533f73.tar.gz |
Make sure we are using a steady clock
Diffstat (limited to 'xmrstak/backend/amd/minethd.cpp')
-rw-r--r-- | xmrstak/backend/amd/minethd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmrstak/backend/amd/minethd.cpp b/xmrstak/backend/amd/minethd.cpp index 103688f..e83527c 100644 --- a/xmrstak/backend/amd/minethd.cpp +++ b/xmrstak/backend/amd/minethd.cpp @@ -249,8 +249,7 @@ void minethd::work_main() } iCount += pGpuCtx->rawIntensity; - using namespace std::chrono; - uint64_t iStamp = time_point_cast<milliseconds>(high_resolution_clock::now()).time_since_epoch().count(); + uint64_t iStamp = get_timestamp_ms(); iHashCount.store(iCount, std::memory_order_relaxed); iTimestamp.store(iStamp, std::memory_order_relaxed); std::this_thread::yield(); |