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:
@@ -34,7 +34,6 @@
|
||||
uint64_t Problem1::MAX_NUMBER = 1000;
|
||||
|
||||
Problem1::Problem1() : Problem("What is the sum of all the multiples of 3 or 5 that are less than 1000?"), fullSum(0){
|
||||
|
||||
}
|
||||
|
||||
void Problem1::solve(){
|
||||
@@ -84,3 +83,9 @@ uint64_t Problem1::getSum() const{
|
||||
}
|
||||
return fullSum;
|
||||
}
|
||||
|
||||
void Problem1::reset(){
|
||||
Problem::reset();
|
||||
fullSum = 0;
|
||||
numbers.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user