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:
@@ -44,7 +44,6 @@ unsigned int Problem19::START_YEAR = 1901; //The start year
|
||||
unsigned int Problem19::END_YEAR = 2000; //The stop year
|
||||
|
||||
Problem19::Problem19() : Problem("How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)?"), totalSundays(0){
|
||||
|
||||
}
|
||||
|
||||
Problem19::DAYS Problem19::getDay(unsigned int month, unsigned int day, unsigned int year){
|
||||
@@ -189,3 +188,8 @@ uint64_t Problem19::getTotalSundays() const{
|
||||
}
|
||||
return totalSundays;
|
||||
}
|
||||
|
||||
void Problem19::reset(){
|
||||
Problem::reset();
|
||||
totalSundays = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user