Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

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

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

References Reset(), t_, and tag_.

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

References Report(), and tag_.

Member Function Documentation

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

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

Referenced by ~Timer().

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

Member Data Documentation

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

Referenced by GetTime().

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

Referenced by Report(), and Timer().

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

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


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