Sync changes.
This commit is contained in:
parent
9f6f599d78
commit
2a2712ab90
12 changed files with 114 additions and 33 deletions
|
@ -31,7 +31,7 @@
|
|||
namespace xmrig {
|
||||
|
||||
|
||||
static inline int64_t currentMSecsSinceEpoch()
|
||||
static inline int64_t steadyTimestamp()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
if (high_resolution_clock::is_steady) {
|
||||
|
@ -42,6 +42,14 @@ static inline int64_t currentMSecsSinceEpoch()
|
|||
}
|
||||
|
||||
|
||||
static inline int64_t currentMSecsSinceEpoch()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
|
||||
return time_point_cast<milliseconds>(high_resolution_clock::now()).time_since_epoch().count();
|
||||
}
|
||||
|
||||
|
||||
} /* namespace xmrig */
|
||||
|
||||
#endif /* XMRIG_TIMESTAMP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue