87 static LARGE_INTEGER perfFreq;
88 static Bool_t usePerformanceCounter = QueryPerformanceFrequency(&perfFreq);
90 if (usePerformanceCounter) {
91 LARGE_INTEGER counter;
92 QueryPerformanceCounter(&counter);
94 static_cast<Double_t>(perfFreq.QuadPart);
103 GetSystemTimeAsFileTime(&ft);
104 uli.LowPart = ft.dwLowDateTime;
105 uli.HighPart = ft.dwHighDateTime;
107 return static_cast<Double_t>(t /= 1E4);
110 gettimeofday(&tv, 0);
111 return static_cast<Double_t>(tv.tv_sec*1E3) +
static_cast<Double_t>(tv.tv_usec) / 1E3;
Stopwatch object for timing GL work.
Double_t fLastRun
end time (millisec)
TGLStopwatch()
Construct stopwatch object.
void Start()
Start timing.
Double_t Lap() const
Return lap time since Start(), in milliseconds.
Double_t fEnd
start time (millisec)
Double_t GetClock(void) const
time of last run (milisec)
Double_t End()
End timing, return total time since Start(), in milliseconds.
virtual ~TGLStopwatch()
Destroy stopwatch object.