Image Utilities (IU)
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
Public Member Functions
iu::IuCudaTimer Class Reference

The IuCudaTimer class can be used to do high-precision GPU timing measurements. More...

#include <iucore.h>

Public Member Functions

 IuCudaTimer ()
 IuCudaTimer constructor.
 
void start ()
 start timing
 
float elapsed ()
 stop timing More...
 

Detailed Description

The IuCudaTimer class can be used to do high-precision GPU timing measurements.

It uses GPU hardware timers with a resolution of around to 0.5 microseconds. It is not necessary to put workload on the GPU, i.e. this class can also be used for high-precision CPU timings.

Member Function Documentation

float iu::IuCudaTimer::elapsed ( )
inline

stop timing

Returns
elapsed time since start was called in milliseconds

The documentation for this class was generated from the following file: