Sync changes.
This commit is contained in:
parent
f7b029eb05
commit
57479cef8c
7 changed files with 31 additions and 14 deletions
|
@ -21,8 +21,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __TIMESTAMP_H__
|
||||
#define __TIMESTAMP_H__
|
||||
#ifndef XMRIG_TIMESTAMP_H
|
||||
#define XMRIG_TIMESTAMP_H
|
||||
|
||||
|
||||
#include <chrono>
|
||||
|
@ -31,7 +31,7 @@
|
|||
namespace xmrig {
|
||||
|
||||
|
||||
int64_t currentMSecsSinceEpoch()
|
||||
static inline int64_t currentMSecsSinceEpoch()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
if (high_resolution_clock::is_steady) {
|
||||
|
@ -44,4 +44,4 @@ int64_t currentMSecsSinceEpoch()
|
|||
|
||||
} /* namespace xmrig */
|
||||
|
||||
#endif /* __TIMESTAMP_H__ */
|
||||
#endif /* XMRIG_TIMESTAMP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue