1 #ifndef _TIMEHELPER_INCLUDED_
2 #define _TIMEHELPER_INCLUDED_
14 static std::string
ToString(
double time);
15 static std::string
ToSecond(
double time);
50 ScopedTimer(
const std::string& tag,
bool showSec =
false);
58 #endif //_TIMEHELPER_INCLUDED_
Definition: timehelper.h:46
double m_wallElapse
Definition: timehelper.h:40
virtual ~Timer()
Definition: timehelper.cc:94
Definition: timehelper.h:8
virtual ~ScopedTimer()
Definition: timehelper.cc:163
static std::string ToString(double time)
Definition: timehelper.cc:49
std::string ToSecond() const
Definition: timehelper.cc:140
void Stop()
Definition: timehelper.cc:106
static double GetCpuTime()
Definition: timehelper.cc:31
double ElapsedCpu() const
Definition: timehelper.cc:122
double m_cpuStart
Definition: timehelper.h:37
ScopedTimer(bool showSec=false)
Definition: timehelper.cc:150
Timer()
Definition: timehelper.cc:86
std::string m_tag
Definition: timehelper.h:55
bool m_stopped
Definition: timehelper.h:41
double m_cpuElapse
Definition: timehelper.h:39
static std::string ToSecond(double time)
Definition: timehelper.cc:74
double m_wallStart
Definition: timehelper.h:38
void Start()
Definition: timehelper.cc:97
static double GetWallTime()
Definition: timehelper.cc:12
bool m_showSec
Definition: timehelper.h:54
Definition: timehelper.h:20
double ElapsedWall() const
Definition: timehelper.cc:127
std::string ToString() const
Definition: timehelper.cc:132
void Resume()
Definition: timehelper.cc:115