#include <profiling.h>
Public Member Functions | |
void | count () |
int | getCount () |
double | getTotalTimeMicroseconds () |
void | print () |
ProfileInstance () | |
void | reset () |
void | setName (const char *name) |
void | startTimer () |
void | stopTimer () |
Private Attributes | |
int | mCount |
PROF_DURATION_UNIT | mElapsedTime |
std::string | mName |
bool | mRunning |
PROF_TIME_UNIT | mStartTime |
The units here might be different depending on the operating system. |
Definition at line 168 of file profiling.h.
Profiling::ProfileInstance::ProfileInstance | ( | ) |
Definition at line 30 of file profiling.cpp.
void Profiling::ProfileInstance::count | ( | ) | [inline] |
Definition at line 179 of file profiling.h.
int Profiling::ProfileInstance::getCount | ( | ) | [inline] |
Definition at line 180 of file profiling.h.
double Profiling::ProfileInstance::getTotalTimeMicroseconds | ( | ) |
This returns the elapsed time. It does whatever conversion is necessary, depending on the OS, to convert to microseconds. If the timer is running at the moment when this is called, is also adds the currently ellapsed time.
This call is slower than start or stop timer, so don't abuse it.
Definition at line 38 of file profiling.cpp.
void Profiling::ProfileInstance::print | ( | ) |
Definition at line 50 of file profiling.cpp.
void Profiling::ProfileInstance::reset | ( | ) | [inline] |
Definition at line 181 of file profiling.h.
void Profiling::ProfileInstance::setName | ( | const char * | name | ) | [inline] |
Definition at line 177 of file profiling.h.
void Profiling::ProfileInstance::startTimer | ( | ) | [inline] |
Definition at line 190 of file profiling.h.
void Profiling::ProfileInstance::stopTimer | ( | ) | [inline] |
Definition at line 202 of file profiling.h.
int Profiling::ProfileInstance::mCount [private] |
Definition at line 168 of file profiling.h.
PROF_DURATION_UNIT Profiling::ProfileInstance::mElapsedTime [private] |
Definition at line 174 of file profiling.h.
std::string Profiling::ProfileInstance::mName [private] |
Definition at line 170 of file profiling.h.
bool Profiling::ProfileInstance::mRunning [private] |
Definition at line 169 of file profiling.h.
PROF_TIME_UNIT Profiling::ProfileInstance::mStartTime [private] |
The units here might be different depending on the operating system.
use getTotalTimeMicroseconds() to get total timer time in microseconds.
Definition at line 173 of file profiling.h.