From ad1ca296900e3b76f5d4f93a81139ba60b728fdb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 20 Sep 2010 12:52:15 +0000 Subject: [PATCH] Flush output after every benchmark. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/benchmarks/bench.cpp b/tests/benchmarks/bench.cpp index 9cabf96011..2662554ef8 100644 --- a/tests/benchmarks/bench.cpp +++ b/tests/benchmarks/bench.cpp @@ -294,6 +294,8 @@ int BenchApp::OnRun() wxPrintf("%.2f avg (min=%ld, max=%ld)\n", (float)timeTotal / times, timeMin, timeMax); } + + fflush(stdout); } return rc;