Profiler Class Reference

#include <timer.h>

Collaboration diagram for Profiler:

Public Member Functions

 Profiler (const char *function_name)
 ~Profiler ()

Private Attributes

Timer tim_
const char * name_

Detailed Description

Definition at line 93 of file timer.h.

Constructor & Destructor Documentation

◆ Profiler()

Profiler ( const char *  function_name)

Definition at line 97 of file timer.h.

97 : name_(function_name) { }
const char * name_
Definition: timer.h:101

◆ ~Profiler()

~Profiler ( )

Definition at line 81 of file

References ProfileStats::AccStats().

81  {
83 }
Timer tim_
Definition: timer.h:100
const char * name_
Definition: timer.h:101
void AccStats(const char *function_name, double elapsed)
double Elapsed() const
Returns time in seconds.
Definition: timer.h:74
ProfileStats g_profile_stats

Member Data Documentation

◆ name_

const char* name_

Definition at line 101 of file timer.h.

◆ tim_

Timer tim_

Definition at line 100 of file timer.h.

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