Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 32 of file TGLStopwatch.h.

Public Member Functions

 TGLStopwatch ()
 Construct stopwatch object.
 
virtual ~TGLStopwatch ()
 Destroy stopwatch object.
 
Double_t End ()
 End timing, return total time since Start(), in milliseconds.
 
virtual TClassIsA () const
 
Double_t Lap () const
 Return lap time since Start(), in milliseconds.
 
Double_t LastRun () const
 
void Start ()
 Start timing.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

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

Private Attributes

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

#include <TGLStopwatch.h>

Constructor & Destructor Documentation

◆ TGLStopwatch()

TGLStopwatch::TGLStopwatch ( )

Construct stopwatch object.

Definition at line 33 of file TGLStopwatch.cxx.

◆ ~TGLStopwatch()

TGLStopwatch::~TGLStopwatch ( )
virtual

Destroy stopwatch object.

Definition at line 40 of file TGLStopwatch.cxx.

Member Function Documentation

◆ Class()

static TClass * TGLStopwatch::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLStopwatch::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLStopwatch::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 52 of file TGLStopwatch.h.

◆ DeclFileName()

static const char * TGLStopwatch::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 52 of file TGLStopwatch.h.

◆ End()

Double_t TGLStopwatch::End ( )

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

Definition at line 69 of file TGLStopwatch.cxx.

◆ GetClock()

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.

◆ IsA()

virtual TClass * TGLStopwatch::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 52 of file TGLStopwatch.h.

◆ Lap()

Double_t TGLStopwatch::Lap ( ) const

Return lap time since Start(), in milliseconds.

Definition at line 57 of file TGLStopwatch.cxx.

◆ LastRun()

Double_t TGLStopwatch::LastRun ( ) const
inline

Definition at line 50 of file TGLStopwatch.h.

◆ Start()

void TGLStopwatch::Start ( )

Start timing.

Definition at line 47 of file TGLStopwatch.cxx.

◆ Streamer()

virtual void TGLStopwatch::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGLStopwatch::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 52 of file TGLStopwatch.h.

Member Data Documentation

◆ fEnd

Double_t TGLStopwatch::fEnd
private

start time (millisec)

Definition at line 37 of file TGLStopwatch.h.

◆ fLastRun

Double_t TGLStopwatch::fLastRun
private

end time (millisec)

Definition at line 38 of file TGLStopwatch.h.

◆ fStart

Double_t TGLStopwatch::fStart
private

Definition at line 36 of file TGLStopwatch.h.

Libraries for TGLStopwatch:

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