Skip to content
Snippets Groups Projects
Commit 17d0423d authored by Yurov, Dmitry's avatar Yurov, Dmitry
Browse files

A method to return all test data in Benchmark

Redmine: #1818
parent cc4478c9
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ private:
class BA_CORE_API_ Benchmark
{
typedef OrderedMap<std::string, Duration*> BenchmarkMap;
public:
Benchmark() {}
~Benchmark();
......@@ -48,11 +49,12 @@ public:
void stop(const std::string& name);
double runTime(const std::string& name);
std::string report() const;
const BenchmarkMap& retrieveData() const {return m_data;}
void test_method(const std::string& name, std::function<void(void)> f, int ntries);
private:
OrderedMap<std::string, Duration* > m_data;
BenchmarkMap m_data;
};
#endif // COREIOTEST_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment