Removed CPU specific code from Worker class.
This commit is contained in:
parent
ee434a5708
commit
dff59fabc2
7 changed files with 39 additions and 44 deletions
|
@ -35,6 +35,14 @@ 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 inline uint64_t steadyMSecs()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue