Client refactoring.

This commit is contained in:
XMRig
2019-03-15 01:06:10 +07:00
parent 630ee04681
commit 7862f71256
6 changed files with 72 additions and 47 deletions

View File

@@ -32,6 +32,7 @@
#include "api/Api.h"
#include "base/tools/Chrono.h"
#include "common/log/Log.h"
#include "common/net/Client.h"
#include "common/net/SubmitResult.h"
@@ -204,7 +205,7 @@ void xmrig::Network::setJob(Client *client, const Job &job, bool donate)
void xmrig::Network::tick()
{
const uint64_t now = uv_now(uv_default_loop());
const uint64_t now = Chrono::steadyMSecs();
m_strategy->tick(now);