Rosetta
Public Member Functions | Private Attributes | List of all members
basic::gpu::Timer Class Reference

#include <Timer.hh>

Public Member Functions

 Timer (const char *tag)
 
 Timer (basic::Tracer::TracerProxy &t, const char *tag=nullptr)
 
 Timer ()
 
 ~Timer ()
 
void Report (const char *tag=nullptr)
 
void Reset ()
 
double GetTime ()
 

Private Attributes

struct timeval start end
 
const char * tag_
 
basic::Tracer::TracerProxyt_
 

Constructor & Destructor Documentation

◆ Timer() [1/3]

basic::gpu::Timer::Timer ( const char *  tag)

References Reset(), t_, tag, and tag_.

◆ Timer() [2/3]

basic::gpu::Timer::Timer ( basic::Tracer::TracerProxy t,
const char *  tag = nullptr 
)

References Reset(), predPRE::t, t_, tag, and tag_.

◆ Timer() [3/3]

basic::gpu::Timer::Timer ( )

References Reset(), t_, and tag_.

◆ ~Timer()

basic::gpu::Timer::~Timer ( )

References Report(), and tag_.

Member Function Documentation

◆ GetTime()

double basic::gpu::Timer::GetTime ( )

◆ Report()

void basic::gpu::Timer::Report ( const char *  tag = nullptr)

References utility::io::oc::cout, GetTime(), t_, tag, and tag_.

Referenced by ~Timer().

◆ Reset()

void basic::gpu::Timer::Reset ( )

Member Data Documentation

◆ end

struct timeval start basic::gpu::Timer::end
private

Referenced by GetTime().

◆ t_

basic::Tracer::TracerProxy* basic::gpu::Timer::t_
private

Referenced by Report(), and Timer().

◆ tag_

const char* basic::gpu::Timer::tag_
private

Referenced by Report(), Timer(), and ~Timer().


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