mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Added some flushes to make sure the progress dots
are being printed
This commit is contained in:
@@ -80,7 +80,7 @@ void runSpecific(){
|
|||||||
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
||||||
//Reset the data so you are actually counting the run time a second time
|
//Reset the data so you are actually counting the run time a second time
|
||||||
problem->reset();
|
problem->reset();
|
||||||
std::cout << '.';
|
(std::cout << '.').flush();
|
||||||
//Solve the problem
|
//Solve the problem
|
||||||
problem->solve();
|
problem->solve();
|
||||||
//Get the time data
|
//Get the time data
|
||||||
@@ -111,7 +111,7 @@ void runAllShort(){
|
|||||||
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
||||||
//Reset the data so you are actually counting the run time a second time
|
//Reset the data so you are actually counting the run time a second time
|
||||||
problem->reset();
|
problem->reset();
|
||||||
std::cout << '.';
|
(std::cout << '.').flush();
|
||||||
//Solve the problem
|
//Solve the problem
|
||||||
problem->solve();
|
problem->solve();
|
||||||
//Get the time data
|
//Get the time data
|
||||||
@@ -139,7 +139,7 @@ void runAll(){
|
|||||||
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
for(unsigned int cnt = 0;cnt < timesToRun;++cnt){
|
||||||
//Reset the data so you are actually counting the run time a second time
|
//Reset the data so you are actually counting the run time a second time
|
||||||
problem->reset();
|
problem->reset();
|
||||||
std::cout << '.';
|
(std::cout << '.').flush();
|
||||||
//Solve the problem
|
//Solve the problem
|
||||||
problem->solve();
|
problem->solve();
|
||||||
//Get the time data
|
//Get the time data
|
||||||
|
|||||||
Reference in New Issue
Block a user