diff options
author | vng <viktor.govako@gmail.com> | 2011-10-18 01:09:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:26:18 +0300 |
commit | c8c6a4047bc673c2938bca457f6e234968b24dd4 (patch) | |
tree | 976f6afcf01d9035ada10f6c67b1fa76d231cac3 /map/benchmark_tool | |
parent | 995a4540a4b85571e54de6335bfb34fe64c37c73 (diff) |
Forget to add new file.
Diffstat (limited to 'map/benchmark_tool')
-rw-r--r-- | map/benchmark_tool/api.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/map/benchmark_tool/api.cpp b/map/benchmark_tool/api.cpp new file mode 100644 index 0000000000..68ad0a3139 --- /dev/null +++ b/map/benchmark_tool/api.cpp @@ -0,0 +1,23 @@ +#include "api.hpp" + +#include "../../std/iostream.hpp" + +#include "../../base/start_mem_debug.hpp" + + +namespace bench +{ + +void AllResult::Print(bool perFrame) const +{ + size_t count = m_all.m_count; + if (perFrame) + count *= m_reading.m_count; + + // 'all time', 'index time', 'feature loading time' + cout << m_all.m_time / count << ' ' << + (m_all.m_time - m_reading.m_time) / count << ' ' << + m_reading.m_time / count << endl; +} + +} |