Add class Telemetry.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#define __WORKER_H__
|
||||
|
||||
|
||||
#include <atomic>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@@ -41,11 +42,18 @@ public:
|
||||
Worker(Handle *handle);
|
||||
~Worker();
|
||||
|
||||
inline uint64_t hashCount() const override { return m_hashCount.load(std::memory_order_relaxed); }
|
||||
inline uint64_t timestamp() const override { return m_timestamp.load(std::memory_order_relaxed); }
|
||||
|
||||
protected:
|
||||
void storeStats();
|
||||
|
||||
bool m_nicehash;
|
||||
cryptonight_ctx *m_ctx;
|
||||
int m_id;
|
||||
int m_threads;
|
||||
std::atomic<uint64_t> m_hashCount;
|
||||
std::atomic<uint64_t> m_timestamp;
|
||||
uint64_t m_count;
|
||||
uint64_t m_sequence;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user