diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2017-10-31 17:59:17 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | ce58a9f8f8504c165ca4527bfd991a4029437cba (patch) | |
tree | c4360d11603912aa2e1915e5c25e42062218aaa5 /tests/framework/instruments/OpenCLTimer.h | |
parent | 82afedf2598c8fc5a428ecbd729dd8204b46fd43 (diff) | |
download | ComputeLibrary-ce58a9f8f8504c165ca4527bfd991a4029437cba.tar.gz |
COMPMID-622 Let the user choose the units for the instruments
Change-Id: Ic6ac4cd6df6970593a5e2e6310b6d61951c88898
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93887
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/framework/instruments/OpenCLTimer.h')
-rw-r--r-- | tests/framework/instruments/OpenCLTimer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/framework/instruments/OpenCLTimer.h b/tests/framework/instruments/OpenCLTimer.h index d00a2e8bf2..a3dc107bf8 100644 --- a/tests/framework/instruments/OpenCLTimer.h +++ b/tests/framework/instruments/OpenCLTimer.h @@ -42,7 +42,7 @@ namespace framework class OpenCLTimer : public Instrument { public: - OpenCLTimer(); + OpenCLTimer(ScaleFactor scale_factor); std::string id() const override; void start() override; void stop() override; @@ -56,6 +56,9 @@ public: std::list<kernel_info> kernels{}; std::function<decltype(clEnqueueNDRangeKernel)> real_function; #endif /* ARM_COMPUTE_CL */ + +private: + float _scale_factor{}; }; } // namespace framework } // namespace test |