ROOT logo
ROOT » GRAF3D » GL » TGLStopwatch

class TGLStopwatch


TGLStopwatch

Stopwatch object for timing GL work. We do not use the TStopwatch as
we need to perform GL flushing to get accurate times + we record
timing overheads here.

Function Members (Methods)

public:
TGLStopwatch()
TGLStopwatch(const TGLStopwatch&)
virtual~TGLStopwatch()
static TClass*Class()
Double_tEnd()
virtual TClass*IsA() const
Double_tLap() const
Double_tLastRun() const
TGLStopwatch&operator=(const TGLStopwatch&)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
voidStart()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
Double_tGetClock() const

Data Members

private:
Double_tfEnd! end time (millisec)
Double_tfLastRun! time of last run (milisec)
Double_tfStart! start time (millisec)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLStopwatch()
 Construct stopwatch object.
~TGLStopwatch()
 Destroy stopwatch object.
void Start()
 Start timing.
Double_t Lap() const
 Return lap time since Start(), in milliseconds.
Double_t End()
 End timing, return total time since Start(), in milliseconds.
Double_t GetClock(void)
 Get internal clock time, in milliseconds.
TGLStopwatch()
Double_t LastRun() const
{ return fLastRun; }