Added Benchmark class.

This commit is contained in:
XMRig 2020-10-17 04:03:42 +07:00
parent 7fc7b976bf
commit 328f985e07
No known key found for this signature in database
GPG key ID: 446A53638BE94409
14 changed files with 346 additions and 156 deletions

View file

@ -36,6 +36,7 @@ namespace xmrig {
class Algorithm;
class Benchmark;
class Hashrate;
class IApiRequest;
class IWorker;
@ -66,6 +67,11 @@ public:
virtual rapidjson::Value toJSON(rapidjson::Document &doc) const = 0;
virtual void handleRequest(IApiRequest &request) = 0;
# endif
# ifdef XMRIG_FEATURE_BENCHMARK
virtual Benchmark *benchmark() const = 0;
virtual void printBenchProgress() const = 0;
# endif
};