mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Added a benchmark tool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user