A++ » INCLUDE » 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.

 MT: Bypassed all of the overhead stuff. It does not seem reasonable
 anyway. Besides it was being initialized outside of a valid GL
 context and coused random crashes (especially on 64-bit machines with
 nvidia cards).


Function Members (Methods)

public:
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) const
voidStart()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLStopwatch()
TGLStopwatch(const TGLStopwatch&)
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 Chart:
TGLStopwatch

Function documentation

Double_t GetClock(void)
 Methods
TGLStopwatch()
virtual ~TGLStopwatch()
void Start()
Double_t Lap() const
Double_t End()
Double_t LastRun() const
{ return fLastRun; }