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 Problem2::TOP_NUM = 4000000;
|
||||
|
||||
Problem2::Problem2() : Problem("What is the sum of the even Fibonacci numbers less than 4,000,000?"), fullSum(0){
|
||||
|
||||
}
|
||||
|
||||
void Problem2::solve(){
|
||||
@@ -80,3 +79,8 @@ uint64_t Problem2::getSum() const{
|
||||
}
|
||||
return fullSum;
|
||||
}
|
||||
|
||||
void Problem2::reset(){
|
||||
Problem::reset();
|
||||
fullSum = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user