1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 08:23:34 -05:00

Sync changes.

This commit is contained in:
XMRig
2018-08-31 18:01:15 +03:00
parent f7b029eb05
commit 57479cef8c
7 changed files with 31 additions and 14 deletions

View File

@@ -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 */