OpenSceneGraph  3.5.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::ElapsedTime Class Reference

Helper class for timing sections of code. More...

Public Member Functions

 ElapsedTime (double *elapsedTime, osg::Timer *timer=0)
 
 ElapsedTime (osg::Timer *timer=0)
 
 ~ElapsedTime ()
 
void reset ()
 
double elapsedTime () const
 elapsed time in seconds. More...
 
double elapsedTime_m () const
 elapsed time in milliseconds. More...
 
double elapsedTime_u () const
 elapsed time in microseconds. More...
 
double elapsedTime_n () const
 elapsed time in nanoseconds. More...
 
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.

Constructor & Destructor Documentation

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

Member Function Documentation

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

elapsed time in seconds.

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

elapsed time in milliseconds.

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

elapsed time in nanoseconds.

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

elapsed time in microseconds.

void osg::ElapsedTime::finish ( )
inline
void osg::ElapsedTime::init ( osg::Timer timer)
inlineprotected
void osg::ElapsedTime::reset ( )
inline

Member Data Documentation

Timer_t osg::ElapsedTime::_startTick
protected
double* osg::ElapsedTime::_time
protected
Timer* osg::ElapsedTime::_timer
protected

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

osg logo
Generated at Wed Nov 11 2015 22:14:33 for the OpenSceneGraph by doxygen 1.8.10.