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

Public Types

using clock_type = Clock
 

Public Member Functions

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

std::chrono::time_point< Clock > mStart
 
std::chrono::time_point< Clock > mStop
 

Member Typedef Documentation

◆ clock_type

template<typename Clock >
using samplesCommon::CpuTimer< Clock >::clock_type = Clock

Member Function Documentation

◆ start()

template<typename Clock >
void samplesCommon::CpuTimer< Clock >::start ( )
inlinevirtual

Reimplemented from samplesCommon::TimerBase.

◆ stop()

template<typename Clock >
void samplesCommon::CpuTimer< Clock >::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

template<typename Clock >
std::chrono::time_point<Clock> samplesCommon::CpuTimer< Clock >::mStart
private

◆ mStop

template<typename Clock >
std::chrono::time_point<Clock> samplesCommon::CpuTimer< Clock >::mStop
private

◆ mMs

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

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