From 89bb42d4d9f7fc730680e10b8703c79016145e60 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Wed, 8 Jul 2020 21:00:24 -0400 Subject: [PATCH] Added descriptions before solving problems --- benchmark.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/benchmark.cpp b/benchmark.cpp index 78a1445..ca08e3e 100644 --- a/benchmark.cpp +++ b/benchmark.cpp @@ -76,7 +76,8 @@ void runSpecific(){ //Get the problem Problem* problem = getProblem(problemNumber); //Run the problem the specific number of times - std::cout << "Solving"; + std::cout << problemNumber << ". " << problem->getDescription() + << "\nSolving"; for(unsigned int cnt = 0;cnt < timesToRun;++cnt){ //Reset the data so you are actually counting the run time a second time problem->reset(); @@ -107,7 +108,8 @@ void runAllShort(){ //Get the problem Problem* problem = getProblem(problemNumber); //Run each problem the specified number of times - std::cout << "Solving"; + std::cout << problemNumber << ". " << problem->getDescription() + << "\nSolving"; for(unsigned int cnt = 0;cnt < timesToRun;++cnt){ //Reset the data so you are actually counting the run time a second time problem->reset(); @@ -135,7 +137,8 @@ void runAll(){ //Get the problem Problem* problem = getProblem(problemNumber); //Run each problem the specified number of times - std::cout << "Solving"; + std::cout << problemNumber << ". " << problem->getDescription() + << "\nSolving"; for(unsigned int cnt = 0;cnt < timesToRun;++cnt){ //Reset the data so you are actually counting the run time a second time problem->reset();