Added a benchmark tool

This commit is contained in:
2020-07-08 20:38:37 -04:00
parent a7d960c3b1
commit 766af92f1a
68 changed files with 546 additions and 134 deletions

View File

@@ -7,7 +7,6 @@
#ifndef PROBLEM_HPP
#define PROBLEM_HPP
#include <string>
#include "Stopwatch.hpp"
@@ -35,8 +34,15 @@ public:
virtual std::string getTime(){
return timer.getStr();
}
virtual mee::Stopwatch getTimer(){
return timer;
}
virtual void solve() = 0;
virtual std::string getString() const = 0;
virtual void reset(){
timer.reset();
solved = false;
}
};
#endif //PROBLEM_HPP