]> git.saurik.com Git - wxWidgets.git/commitdiff
No real changes, just flush output in the graphics benchmark.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Feb 2013 20:46:57 +0000 (20:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Feb 2013 20:46:57 +0000 (20:46 +0000)
Show the output messages sooner instead of showing them all only when the test
ends.

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

tests/benchmarks/graphics.cpp

index 41083c3463811c455f5d6dac760066ee75921894..06a4725aa8740160c9e1a48953a4229dc451fdb3 100644 (file)
@@ -109,6 +109,7 @@ private:
             dc.SetPen(wxPen(*wxWHITE, opts.penWidth));
 
         wxPrintf("Benchmarking %s: ", msg);
+        fflush(stdout);
 
         wxStopWatch sw;
         int x = 0,
@@ -144,6 +145,7 @@ private:
         dc.SetBrush( *wxRED_BRUSH );
 
         wxPrintf("Benchmarking %s: ", msg);
+        fflush(stdout);
 
         wxStopWatch sw;
         for ( int n = 0; n < opts.numLines; n++ )
@@ -171,6 +173,7 @@ private:
             dc.SetPen(wxPen(*wxWHITE, opts.penWidth));
 
         wxPrintf("Benchmarking %s: ", msg);
+        fflush(stdout);
 
         wxStopWatch sw;
         for ( int n = 0; n < opts.numLines; n++ )