Refactored Chrono::highResolutionMSecs()
Improved precision
This commit is contained in:
parent
e673d541c1
commit
efb322df66
5 changed files with 59 additions and 34 deletions
|
@ -29,12 +29,7 @@ namespace xmrig {
|
|||
class Chrono
|
||||
{
|
||||
public:
|
||||
static inline uint64_t highResolutionMSecs()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
|
||||
return static_cast<uint64_t>(time_point_cast<milliseconds>(high_resolution_clock::now()).time_since_epoch().count());
|
||||
}
|
||||
static double highResolutionMSecs();
|
||||
|
||||
|
||||
static inline uint64_t steadyMSecs()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue