class 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)

TGLStopwatch(const TGLStopwatch&)
static TClass*Class()
virtual TClass*IsA() const
Double_tLap() const
TGLStopwatch&operator=(const TGLStopwatch&)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidFinishDrawing() const
Double_tGetClock() const
voidInitOverhead() const
Double_tWaitForTick() const

Data Members

Double_tfStart! start time (millisec)
static Bool_tfgInitOverhead! overhead calculated?
static Double_tfgOverhead! timing overhead (millisecs)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLStopwatch(const TGLStopwatch& )
 Construct stopwatch object, initialising timing overheads if not done.
 Destroy stopwatch object
void Start()
 Start timing.
Double_t Lap()
 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.
void FinishDrawing(void)
 Force completion of GL drawing.
Double_t WaitForTick(void)
 Wait for next clock increment - return it in milliseconds
void InitOverhead(void)
 Calcualte timing overhead.
TGLStopwatch(const TGLStopwatch& )

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Id: TGLStopwatch.h 20882 2007-11-19 11:31:26Z rdm $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.