ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGLStopwatch Class Reference

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.

Definition at line 34 of file TGLStopwatch.h.

Public Member Functions

 TGLStopwatch ()
 Construct stopwatch object. More...
 
virtual ~TGLStopwatch ()
 Destroy stopwatch object. More...
 
void Start ()
 Start timing. More...
 
Double_t Lap () const
 Return lap time since Start(), in milliseconds. More...
 
Double_t End ()
 End timing, return total time since Start(), in milliseconds. More...
 
Double_t LastRun () const
 

Private Member Functions

Double_t GetClock (void) const
 time of last run (milisec) More...
 

Private Attributes

Double_t fStart
 
Double_t fEnd
 start time (millisec) More...
 
Double_t fLastRun
 end time (millisec) More...
 

#include <TGLStopwatch.h>

Constructor & Destructor Documentation

TGLStopwatch::TGLStopwatch ( )

Construct stopwatch object.

Definition at line 33 of file TGLStopwatch.cxx.

TGLStopwatch::~TGLStopwatch ( )
virtual

Destroy stopwatch object.

Definition at line 40 of file TGLStopwatch.cxx.

Member Function Documentation

Double_t TGLStopwatch::End ( )

End timing, return total time since Start(), in milliseconds.

Definition at line 69 of file TGLStopwatch.cxx.

Referenced by TGLScenePad::BeginScene(), TGLViewer::DoDraw(), and TGLRnrCtx::StopStopwatch().

Double_t TGLStopwatch::GetClock ( void  ) const
private

time of last run (milisec)

Get internal clock time, in milliseconds.

Definition at line 83 of file TGLStopwatch.cxx.

Referenced by End(), Lap(), and Start().

Double_t TGLStopwatch::Lap ( ) const

Return lap time since Start(), in milliseconds.

Definition at line 57 of file TGLStopwatch.cxx.

Referenced by TGLRnrCtx::HasStopwatchTimedOut().

Double_t TGLStopwatch::LastRun ( ) const
inline

Definition at line 52 of file TGLStopwatch.h.

void TGLStopwatch::Start ( )

Start timing.

Definition at line 47 of file TGLStopwatch.cxx.

Referenced by TGLScenePad::BeginScene(), TGLViewer::DoDraw(), and TGLRnrCtx::StartStopwatch().

Member Data Documentation

Double_t TGLStopwatch::fEnd
private

start time (millisec)

Definition at line 39 of file TGLStopwatch.h.

Referenced by End(), and Start().

Double_t TGLStopwatch::fLastRun
private

end time (millisec)

Definition at line 40 of file TGLStopwatch.h.

Referenced by End(), and LastRun().

Double_t TGLStopwatch::fStart
private

Definition at line 38 of file TGLStopwatch.h.

Referenced by End(), Lap(), and Start().


The documentation for this class was generated from the following files: