13#include "TGLIncludes.h"
86 static LARGE_INTEGER perfFreq;
87 static Bool_t usePerformanceCounter = QueryPerformanceFrequency(&perfFreq);
89 if (usePerformanceCounter) {
90 LARGE_INTEGER counter;
91 QueryPerformanceCounter(&counter);
93 static_cast<Double_t>(perfFreq.QuadPart);
102 GetSystemTimeAsFileTime(&ft);
103 uli.LowPart = ft.dwLowDateTime;
104 uli.HighPart = ft.dwHighDateTime;
106 return static_cast<Double_t>(t /= 1E4);
109 gettimeofday(&tv,
nullptr);
110 return static_cast<Double_t>(tv.tv_sec*1E3) +
static_cast<Double_t>(tv.tv_usec) / 1E3;
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
Double_t fLastRun
! time of last run (milisec)
TGLStopwatch()
Construct stopwatch object.
void Start()
Start timing.
Double_t fStart
! start time (millisec)
Double_t Lap() const
Return lap time since Start(), in milliseconds.
Double_t fEnd
! end time (millisec)
Double_t GetClock(void) const
Get internal clock time, in milliseconds.
Double_t End()
End timing, return total time since Start(), in milliseconds.
virtual ~TGLStopwatch()
Destroy stopwatch object.