From c80e612faa00d6c72c34fb6a498c9c5498758b40 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 5 Feb 2013 20:46:57 +0000 Subject: [PATCH] No real changes, just flush output in the graphics benchmark. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/benchmarks/graphics.cpp b/tests/benchmarks/graphics.cpp index 41083c3463..06a4725aa8 100644 --- a/tests/benchmarks/graphics.cpp +++ b/tests/benchmarks/graphics.cpp @@ -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++ ) -- 2.47.2