Public Member Functions | Public Attributes
TimerGPU Class Reference

GPU timer class. More...

#include <cudautils.h>

List of all members.

Public Member Functions

float read ()
 Stops time measuring.
 TimerGPU (cudaStream_t stream_=0)
 Constructor.
 ~TimerGPU ()

Public Attributes

cudaEvent_t start
 Start time.
cudaEvent_t stop
 Stop time.
cudaStream_t stream
 CUDA Stream.

Detailed Description

GPU timer class.

Definition at line 110 of file cudautils.h.


Constructor & Destructor Documentation

TimerGPU::TimerGPU ( cudaStream_t  stream_ = 0) [inline]

Constructor.

Set start time

Parameters:
stream_CUDA Stream

Definition at line 122 of file cudautils.h.

TimerGPU::~TimerGPU ( ) [inline]

Definition at line 127 of file cudautils.h.


Member Function Documentation

float TimerGPU::read ( ) [inline]

Stops time measuring.

Returns:
Time elapsed

Definition at line 134 of file cudautils.h.


Member Data Documentation

cudaEvent_t TimerGPU::start

Start time.

Definition at line 113 of file cudautils.h.

cudaEvent_t TimerGPU::stop

Stop time.

Definition at line 115 of file cudautils.h.

cudaStream_t TimerGPU::stream

CUDA Stream.

Definition at line 117 of file cudautils.h.


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


active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Fri Jan 3 2014 12:02:50