diff options
author | vng <viktor.govako@gmail.com> | 2014-09-06 21:46:20 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:26:09 +0300 |
commit | 573e647de3a22282d0e993c30ffa05f4075c1e93 (patch) | |
tree | 175037c39156eacc4b75da9a5e40a6a0db3bdc97 /map/benchmark_engine.hpp | |
parent | aa21ec0449fda88cb1aff90dd16ea8d810b31a37 (diff) |
Fixed benchmark engine.
Diffstat (limited to 'map/benchmark_engine.hpp')
-rw-r--r-- | map/benchmark_engine.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/map/benchmark_engine.hpp b/map/benchmark_engine.hpp index 28d8a22378..08e5354f83 100644 --- a/map/benchmark_engine.hpp +++ b/map/benchmark_engine.hpp @@ -1,6 +1,5 @@ #pragma once - -#include "framework.hpp" +#include "benchmark_provider.hpp" #include "../geometry/rect2d.hpp" @@ -11,9 +10,8 @@ #include "../std/vector.hpp" #include "../std/shared_ptr.hpp" -struct BenchmarkRectProvider; -class WindowHandle; -class PaintEvent; + +class Framework; /// BenchmarkEngine is class which: /// - Creates it's own thread @@ -22,8 +20,6 @@ class PaintEvent; /// - Measure the time of each task and save the result class BenchmarkEngine : public threads::IRoutine { -private: - threads::Thread m_thread; double m_paintDuration; @@ -66,8 +62,9 @@ private: void Do(); -public: + friend class DoGetBenchmarks; +public: BenchmarkEngine(Framework * fw); void Start(); |