1 #ifndef _UT_StopWatch_h_
2 #define _UT_StopWatch_h_
65 explicit UT_Timer(
const char *block_name);
74 static void timeStamp(
const char *msg1,
const char *msg2=0);
78 void begin(
const char *block_name = NULL );
79 int lap() { myCount++;
return myCount; }
91 void displayBlockDuration(
const char *block_name = NULL );
92 void displayTotalDuration(
const char *block_name = NULL );
93 void displayAverageDuration(
const char *block_name = NULL );
105 static int theIndentation;
114 : myBlockName(block_name)
123 const char* myBlockName;
132 myTimeStamp.begin( name );
238 #endif // _UT_StopWatch_h_
struct timeval SYS_TimeVal
fpreal64 SYStimeDiff(const SYS_TimeVal &end, const SYS_TimeVal &start)
UT_TimerDisplayTotal(const char *block_name)
SYS_API int SYSgettimeofday(SYS_TimeVal *tval)
SYS_TimeVal getStartTime() const
UT_TimerAuto(UT_Timer &ts)
#define SYS_DEPRECATED_REPLACE(__V__, __R__)
UT_TimerAuto(UT_Timer &ts, const char *name)
GLuint const GLchar * name
void displayAverageDuration(const char *block_name=NULL)
void displayTotalDuration(const char *block_name=NULL)
LeafData & operator=(const LeafData &)=delete
fpreal64 operator-(const UT_StopWatch &other)
PcpNodeRef_ChildrenIterator begin(const PcpNodeRef::child_const_range &r)
Support for range-based for loops for PcpNodeRef children ranges.