mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Updated to use new solve checking function
This commit is contained in:
@@ -55,18 +55,12 @@ public:
|
||||
}
|
||||
//Get the time it took to run the algorithm as a string
|
||||
virtual std::string getTime(){
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw Unsolved();
|
||||
}
|
||||
solvedCheck("time it took to run the algorithm");
|
||||
return timer.getStr();
|
||||
}
|
||||
//Get a copy of the timer that was used to time the algorithm
|
||||
virtual mee::Stopwatch getTimer(){
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw Unsolved();
|
||||
}
|
||||
solvedCheck("timer");
|
||||
return timer;
|
||||
}
|
||||
//Reset the problem so it can be run again
|
||||
|
||||
Reference in New Issue
Block a user