C++ common classes
General purpose classes for use across projects (Apache license)
|
#include <CProfileTimer.h>
Public Member Functions | |
CProfileTimer () | |
virtual | ~CProfileTimer () |
void | Start () |
void | GetElapsedTime (ElapsedTime &cElapsed, bool bReset=true) |
Static Public Member Functions | |
static void | SetTimestamp (const char *pLabel) |
static void | GetElapsed (ElapsedTime &cElapsed, const char *pLabel1, const char *pLabel2, bool bMarkLabel2=false) |
static void | GetElapsedNow (ElapsedTime &cElapsed, const char *pLabel1) |
static void | PrintElapsed (const char *pLabel1, const char *pLabel2, bool bMarkLabel2=false, const char *pTag=NULL) |
static long | GetElapsedMS (const char *pLabel1, const char *pLabel2, bool bMarkLabel2=false) |
static void | Clear () |
Static Protected Member Functions | |
static struct timeval | GetLabelTimestamp (const char *pLabel) |
static ElapsedTime | GetDifference (ElapsedTime &cElapsed, struct timeval *sT1, struct timeval *sT2) |
Protected Attributes | |
struct timeval | sStart |
struct timeval | sEnd |
Definition at line 60 of file CProfileTimer.h.
Definition at line 28 of file CProfileTimer.cpp.
CProfileTimer::~CProfileTimer | ( | ) | [virtual] |
Definition at line 33 of file CProfileTimer.cpp.
void CProfileTimer::Clear | ( | ) | [static] |
Definition at line 186 of file CProfileTimer.cpp.
ElapsedTime CProfileTimer::GetDifference | ( | ElapsedTime & | cElapsed, |
struct timeval * | sT1, | ||
struct timeval * | sT2 | ||
) | [static, protected] |
Definition at line 91 of file CProfileTimer.cpp.
void CProfileTimer::GetElapsed | ( | ElapsedTime & | cElapsed, |
const char * | pLabel1, | ||
const char * | pLabel2, | ||
bool | bMarkLabel2 = false |
||
) | [static] |
Definition at line 116 of file CProfileTimer.cpp.
long CProfileTimer::GetElapsedMS | ( | const char * | pLabel1, |
const char * | pLabel2, | ||
bool | bMarkLabel2 = false |
||
) | [static] |
Definition at line 175 of file CProfileTimer.cpp.
void CProfileTimer::GetElapsedNow | ( | ElapsedTime & | cElapsed, |
const char * | pLabel1 | ||
) | [static] |
Definition at line 136 of file CProfileTimer.cpp.
void CProfileTimer::GetElapsedTime | ( | ElapsedTime & | cElapsed, |
bool | bReset = true |
||
) |
Definition at line 79 of file CProfileTimer.cpp.
struct timeval CProfileTimer::GetLabelTimestamp | ( | const char * | pLabel | ) | [static, read, protected] |
Definition at line 40 of file CProfileTimer.cpp.
void CProfileTimer::PrintElapsed | ( | const char * | pLabel1, |
const char * | pLabel2, | ||
bool | bMarkLabel2 = false , |
||
const char * | pTag = NULL |
||
) | [static] |
Definition at line 155 of file CProfileTimer.cpp.
void CProfileTimer::SetTimestamp | ( | const char * | pLabel | ) | [static] |
Definition at line 58 of file CProfileTimer.cpp.
Definition at line 73 of file CProfileTimer.cpp.
struct timeval CProfileTimer::sEnd [protected] |
Definition at line 89 of file CProfileTimer.h.
struct timeval CProfileTimer::sStart [protected] |
Definition at line 88 of file CProfileTimer.h.