library: libRGL
#include "TGLStopwatch.h"

TGLStopwatch


class description - header file - source file
viewCVS header - viewCVS source

class TGLStopwatch

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGLStopwatch()
TGLStopwatch(const TGLStopwatch&)
virtual~TGLStopwatch()
static TClass*Class()
Double_tEnd()
virtual TClass*IsA() const
Double_tLap() const
TGLStopwatch&operator=(const TGLStopwatch&)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
voidStart()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
voidFinishDrawing() const
Double_tGetClock() const
voidInitOverhead() const
Double_tWaitForTick() const

Data Members

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

Class Description

                                                                      
 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.                                               

TGLStopwatch()
 Construct stopwatch object, initialising timing overheads if not done
~TGLStopwatch()
 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()

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLStopwatch.cxx,v 1.7 2006/02/09 09:56:20 couet Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.