A class for profiling CL devices.
More...
#include <CLUtils.hpp>
|
| | GPUTimer (cl::Device &device) |
| |
| cl::Event & | event () |
| | Returns a new unpopulated event. More...
|
| |
|
void | wait () |
| | This is an interface for cl::Event::wait.
|
| |
| double | duration () |
| | Returns the time measured by the timer. More...
|
| |
template<typename period = std::milli>
class clutils::GPUTimer< period >
A class for profiling CL devices.
- Template Parameters
-
| period | the unit of time for the value returned by duration. It is declared as an std::ratio<std::intmax_t num, std::intmax_t den>. |
template<typename period = std::milli>
- Parameters
-
| [in] | device | the targeted for profiling CL device. |
template<typename period = std::milli>
Returns the time measured by the timer.
- Note
- It's important that it's called after a call to
wait.
- Returns
- The time in
period units.
template<typename period = std::milli>
Returns a new unpopulated event.
The last populated event gets dismissed.
- Returns
- An event for the profiling process.
The documentation for this class was generated from the following file: