From 3a26304e0d4752514a6ac941b1ab759245b4cbfe Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Wed, 19 Oct 2011 00:07:23 +0200 Subject: [PATCH] Fixed benchmarks output formatting --- map/benchmark_tool/api.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/map/benchmark_tool/api.cpp b/map/benchmark_tool/api.cpp index b5a9716150..7f16e8cb56 100644 --- a/map/benchmark_tool/api.cpp +++ b/map/benchmark_tool/api.cpp @@ -3,7 +3,7 @@ #include "../../std/iostream.hpp" #include "../../std/numeric.hpp" #include "../../std/algorithm.hpp" - +#include "../../std/iomanip.hpp" namespace bench { @@ -25,10 +25,11 @@ void AllResult::Print() m_reading.CalcMetrics(); // 'all time', 'index time', 'feature loading time' - cout << "all: " << m_all << ' ' << m_all - m_reading.m_all << ' ' << m_reading.m_all << endl; - cout << "med: " << m_reading.m_med << endl; - cout << "avg: " << m_reading.m_avg << endl; - cout << "max: " << m_reading.m_max << endl; + cout << fixed << setprecision(10); + cout << "FRAME*1000[ median:" << m_reading.m_med * 1000 << " "; + cout << "avg:" << m_reading.m_avg * 1000 << " "; + cout << "max:" << m_reading.m_max * 1000 << " ] "; + cout << "TOTAL[ idx:" << m_all - m_reading.m_all << " decoding:" << m_reading.m_all << " summ:" << m_all << " ]" << endl; } }