From d0cfd042a416a0d57d9b4b4cc9dc53c1998fc080 Mon Sep 17 00:00:00 2001 From: wyy Date: Thu, 3 Apr 2014 07:04:05 -0700 Subject: [PATCH] ci load_test --- test/load_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/load_test.cpp b/test/load_test.cpp index 81310b3..78288a7 100644 --- a/test/load_test.cpp +++ b/test/load_test.cpp @@ -23,10 +23,12 @@ void cut(const ISegment * seg, const char * const filePath, size_t times = 10) loadFile2Str(filePath, doc); for(uint i = 0; i < times; i ++) { - LogInfo("times[%u]", i); + printf("process [%3.0lf %%]\r", 100.0*(i+1)/times); + fflush(stdout); res.clear(); seg->cut(doc, res); } + printf("\n"); } int main(int argc, char ** argv)