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;
Double_t fEnd
start time (millisec)
void Start()
Start timing.
Stopwatch object for timing GL work.
TGLStopwatch()
Construct stopwatch object.
Double_t Lap() const
Return lap time since Start(), in milliseconds.
Double_t fLastRun
end time (millisec)
virtual ~TGLStopwatch()
Destroy stopwatch object.
Double_t End()
End timing, return total time since Start(), in milliseconds.
Double_t GetClock(void) const
time of last run (milisec)