1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

ocl: simplify ocl::Timer interface

This commit is contained in:
Alexander Alekhin
2017-10-18 15:59:16 +03:00
parent c63b4433f4
commit 185faf99bd
3 changed files with 24 additions and 52 deletions
+7 -4
View File
@@ -742,13 +742,16 @@ public:
~Timer();
void start();
void stop();
float milliSeconds();
float microSeconds();
float seconds();
uint64 durationNS() const; //< duration in nanoseconds
protected:
struct Impl;
Impl* p;
Impl* const p;
private:
Timer(const Timer&); // disabled
Timer& operator=(const Timer&); // disabled
};
CV_EXPORTS MatAllocator* getOpenCLAllocator();