Set benchmark controller even if no benchmark run is executed

This commit is contained in:
MoneroOcean 2019-07-28 11:52:13 -07:00
parent c0fec3db63
commit e23d3c431b
3 changed files with 5 additions and 4 deletions

View file

@ -67,9 +67,10 @@ class Benchmark : public IJobResultListener {
public:
Benchmark() : m_controller(nullptr), m_isNewBenchRun(true) {}
void set_controller(Controller* controller) { m_controller = controller; }
virtual ~Benchmark() {}
void start(Controller* controller); // start benchmarks
void start(); // start benchmarks
bool isNewBenchRun() const { return m_isNewBenchRun; }
float algo_perf[Algorithm::MAX];