NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Methods | Public Members | List of all members
nvbio::cuda::Timer Struct Reference

Detailed description

A CUDA timer

Definition at line 39 of file timer.h.

#include <timer.h>

Public Methods

 Timer ()
 
 ~Timer ()
 
void start ()
 
void stop ()
 
float seconds () const
 

Public Members

cudaEvent_t m_start
 
cudaEvent_t m_stop
 

Constructor & Destructor Documentation

nvbio::cuda::Timer::Timer ( )
inline

constructor

Definition at line 80 of file timer.h.

nvbio::cuda::Timer::~Timer ( )
inline

destructor

Definition at line 88 of file timer.h.

Member Function Documentation

float nvbio::cuda::Timer::seconds ( ) const
inline

elapsed seconds

Definition at line 111 of file timer.h.

void nvbio::cuda::Timer::start ( )
inline

start timing

Definition at line 96 of file timer.h.

void nvbio::cuda::Timer::stop ( )
inline

stop timing

Definition at line 103 of file timer.h.

Member Data Documentation

cudaEvent_t nvbio::cuda::Timer::m_start

Definition at line 61 of file timer.h.

cudaEvent_t nvbio::cuda::Timer::m_stop

Definition at line 61 of file timer.h.


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