OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::ElapsedTime Class Reference

#include <Timer.h>

Collaboration diagram for osg::ElapsedTime:
Collaboration graph
[legend]

Public Member Functions

 ElapsedTime (double *elapsedTime, osg::Timer *timer=0)
 
 ElapsedTime (osg::Timer *timer=0)
 
 ~ElapsedTime ()
 
void reset ()
 
double elapsedTime () const
 
double elapsedTime_m () const
 
double elapsedTime_u () const
 
double elapsedTime_n () const
 
void finish ()
 

Protected Member Functions

void init (osg::Timer *timer)
 

Protected Attributes

double * _time
 
Timer_timer
 
Timer_t _startTick
 

Detailed Description

Helper class for timing sections of code.

Definition at line 80 of file Timer.h.

Constructor & Destructor Documentation

osg::ElapsedTime::ElapsedTime ( double *  elapsedTime,
osg::Timer timer = 0 
)
inline

Definition at line 83 of file Timer.h.

Here is the call graph for this function:

osg::ElapsedTime::ElapsedTime ( osg::Timer timer = 0)
inline

Definition at line 89 of file Timer.h.

Here is the call graph for this function:

osg::ElapsedTime::~ElapsedTime ( )
inline

Definition at line 95 of file Timer.h.

Here is the call graph for this function:

Member Function Documentation

double osg::ElapsedTime::elapsedTime ( ) const
inline

elapsed time in seconds.

Definition at line 106 of file Timer.h.

Here is the call graph for this function:

double osg::ElapsedTime::elapsedTime_m ( ) const
inline

elapsed time in milliseconds.

Definition at line 112 of file Timer.h.

Here is the call graph for this function:

double osg::ElapsedTime::elapsedTime_n ( ) const
inline

elapsed time in nanoseconds.

Definition at line 124 of file Timer.h.

Here is the call graph for this function:

double osg::ElapsedTime::elapsedTime_u ( ) const
inline

elapsed time in microseconds.

Definition at line 118 of file Timer.h.

Here is the call graph for this function:

void osg::ElapsedTime::finish ( )
inline

Definition at line 129 of file Timer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void osg::ElapsedTime::init ( osg::Timer timer)
inlineprotected

Definition at line 138 of file Timer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void osg::ElapsedTime::reset ( )
inline

Definition at line 100 of file Timer.h.

Here is the call graph for this function:

Member Data Documentation

Timer_t osg::ElapsedTime::_startTick
protected

Definition at line 148 of file Timer.h.

double* osg::ElapsedTime::_time
protected

Definition at line 146 of file Timer.h.

Timer* osg::ElapsedTime::_timer
protected

Definition at line 147 of file Timer.h.


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