From f7dc9356cb7e76d90e283bf6cff2f4f6a79d227d Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Wed, 8 Jul 2020 20:56:18 -0400 Subject: [PATCH] Added some flushes to make sure the progress dots are being printed --- benchmark.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark.cpp b/benchmark.cpp index 0c4de6a..78a1445 100644 --- a/benchmark.cpp +++ b/benchmark.cpp @@ -80,7 +80,7 @@ void runSpecific(){ for(unsigned int cnt = 0;cnt < timesToRun;++cnt){ //Reset the data so you are actually counting the run time a second time problem->reset(); - std::cout << '.'; + (std::cout << '.').flush(); //Solve the problem problem->solve(); //Get the time data @@ -111,7 +111,7 @@ void runAllShort(){ for(unsigned int cnt = 0;cnt < timesToRun;++cnt){ //Reset the data so you are actually counting the run time a second time problem->reset(); - std::cout << '.'; + (std::cout << '.').flush(); //Solve the problem problem->solve(); //Get the time data @@ -139,7 +139,7 @@ void runAll(){ for(unsigned int cnt = 0;cnt < timesToRun;++cnt){ //Reset the data so you are actually counting the run time a second time problem->reset(); - std::cout << '.'; + (std::cout << '.').flush(); //Solve the problem problem->solve(); //Get the time data