TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
samplesCommon::GpuTimer Class Reference
Inheritance diagram for samplesCommon::GpuTimer:
Collaboration diagram for samplesCommon::GpuTimer:

Public Member Functions

 GpuTimer (cudaStream_t stream)
 
 ~GpuTimer ()
 
void start ()
 
void stop ()
 
float microseconds () const noexcept
 
float milliseconds () const noexcept
 
float seconds () const noexcept
 
void reset () noexcept
 

Protected Attributes

float mMs {0.0f}
 

Private Attributes

cudaEvent_t mStart
 
cudaEvent_t mStop
 
cudaStream_t mStream
 

Constructor & Destructor Documentation

◆ GpuTimer()

samplesCommon::GpuTimer::GpuTimer ( cudaStream_t  stream)
inline

◆ ~GpuTimer()

samplesCommon::GpuTimer::~GpuTimer ( )
inline

Member Function Documentation

◆ start()

void samplesCommon::GpuTimer::start ( )
inlinevirtual

Reimplemented from samplesCommon::TimerBase.

◆ stop()

void samplesCommon::GpuTimer::stop ( )
inlinevirtual

Reimplemented from samplesCommon::TimerBase.

◆ microseconds()

float samplesCommon::TimerBase::microseconds ( ) const
inlinenoexceptinherited

◆ milliseconds()

float samplesCommon::TimerBase::milliseconds ( ) const
inlinenoexceptinherited

◆ seconds()

float samplesCommon::TimerBase::seconds ( ) const
inlinenoexceptinherited

◆ reset()

void samplesCommon::TimerBase::reset ( )
inlinenoexceptinherited

Member Data Documentation

◆ mStart

cudaEvent_t samplesCommon::GpuTimer::mStart
private

◆ mStop

cudaEvent_t samplesCommon::GpuTimer::mStop
private

◆ mStream

cudaStream_t samplesCommon::GpuTimer::mStream
private

◆ mMs

float samplesCommon::TimerBase::mMs {0.0f}
protectedinherited

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