forked from organicmaps/organicmaps
Forget to add new file.
This commit is contained in:
parent
995a4540a4
commit
c8c6a4047b
1 changed files with 23 additions and 0 deletions
23
map/benchmark_tool/api.cpp
Normal file
23
map/benchmark_tool/api.cpp
Normal file
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue