]> git.saurik.com Git - wxWidgets.git/commitdiff
Flush output after every benchmark.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Sep 2010 12:52:15 +0000 (12:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Sep 2010 12:52:15 +0000 (12:52 +0000)
This purely cosmetic change simply allows to see the output of the benchmarks
sooner which is more user-friendly when running several long benchmarks.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/benchmarks/bench.cpp

index 9cabf9601171de5f7caad366509a598c1ac1b8d1..2662554ef897284458088239a651ec79b6ab3bd7 100644 (file)
@@ -294,6 +294,8 @@ int BenchApp::OnRun()
             wxPrintf("%.2f avg (min=%ld, max=%ld)\n",
                      (float)timeTotal / times, timeMin, timeMax);
         }
+
+        fflush(stdout);
     }
 
     return rc;