vt::GPUTimer#

class GPUTimer#

Timer class to measure the time of a CUDA kernel.

Public Functions

inline GPUTimer()#

Construct a new GPUTimer object.

inline ~GPUTimer()#

Destroy the GPUTimer object.

inline void start()#

Start the timer.

inline float stop()#

Stop the timer.

Returns:

float: The time in milliseconds.