|
OpenSceneGraph
3.0.1
|
Timer class is used for measuring elapsed time or time between two points. More...
Public Member Functions | |
| Timer () | |
| ~Timer () | |
| Timer_t | tick () const |
| Get the timers tick value. | |
| void | setStartTick () |
| Set the start. | |
| void | setStartTick (Timer_t t) |
| Timer_t | getStartTick () const |
| double | time_s () const |
| Get elapsed time in seconds. | |
| double | time_m () const |
| Get elapsed time in milliseconds. | |
| double | time_u () const |
| Get elapsed time in microseconds. | |
| double | time_n () const |
| Get elapsed time in nanoseconds. | |
| double | delta_s (Timer_t t1, Timer_t t2) const |
| Get the time in seconds between timer ticks t1 and t2. | |
| double | delta_m (Timer_t t1, Timer_t t2) const |
| Get the time in milliseconds between timer ticks t1 and t2. | |
| double | delta_u (Timer_t t1, Timer_t t2) const |
| Get the time in microseconds between timer ticks t1 and t2. | |
| double | delta_n (Timer_t t1, Timer_t t2) const |
| Get the time in nanoseconds between timer ticks t1 and t2. | |
| double | getSecondsPerTick () const |
| Get the the number of seconds per tick. | |
Static Public Member Functions | |
| static Timer * | instance () |
Protected Attributes | |
| Timer_t | _startTick |
| double | _secsPerTick |
Timer class is used for measuring elapsed time or time between two points.
| osg::Timer::~Timer | ( | ) | [inline] |
| double osg::Timer::delta_m | ( | Timer_t | t1, |
| Timer_t | t2 | ||
| ) | const [inline] |
Get the time in milliseconds between timer ticks t1 and t2.
Referenced by osg::ElapsedTime::elapsedTime_m().
| double osg::Timer::delta_n | ( | Timer_t | t1, |
| Timer_t | t2 | ||
| ) | const [inline] |
Get the time in nanoseconds between timer ticks t1 and t2.
Referenced by osg::ElapsedTime::elapsedTime_n().
| double osg::Timer::delta_s | ( | Timer_t | t1, |
| Timer_t | t2 | ||
| ) | const [inline] |
Get the time in seconds between timer ticks t1 and t2.
Referenced by osg::ElapsedTime::elapsedTime(), osg::ElapsedTime::finish(), osg::State::getGpuTime(), osgGA::EventQueue::getTime(), and osg::GraphicsContext::getTimeSinceLastClear().
| double osg::Timer::delta_u | ( | Timer_t | t1, |
| Timer_t | t2 | ||
| ) | const [inline] |
Get the time in microseconds between timer ticks t1 and t2.
Referenced by osg::ElapsedTime::elapsedTime_u().
| double osg::Timer::getSecondsPerTick | ( | ) | const [inline] |
Get the the number of seconds per tick.
| Timer_t osg::Timer::getStartTick | ( | ) | const [inline] |
| static Timer* osg::Timer::instance | ( | ) | [static] |
| void osg::Timer::setStartTick | ( | ) | [inline] |
Set the start.
| void osg::Timer::setStartTick | ( | Timer_t | t | ) | [inline] |
| Timer_t osg::Timer::tick | ( | ) | const |
Get the timers tick value.
Referenced by osg::ElapsedTime::elapsedTime(), osg::ElapsedTime::elapsedTime_m(), osg::ElapsedTime::elapsedTime_n(), osg::ElapsedTime::elapsedTime_u(), osg::ElapsedTime::finish(), osg::ElapsedTime::init(), and osg::ElapsedTime::reset().
| double osg::Timer::time_m | ( | ) | const [inline] |
Get elapsed time in milliseconds.
| double osg::Timer::time_n | ( | ) | const [inline] |
Get elapsed time in nanoseconds.
| double osg::Timer::time_s | ( | ) | const [inline] |
Get elapsed time in seconds.
| double osg::Timer::time_u | ( | ) | const [inline] |
Get elapsed time in microseconds.
double osg::Timer::_secsPerTick [protected] |
Timer_t osg::Timer::_startTick [protected] |
| Generated at Thu Sep 27 2012 17:03:05 for the OpenSceneGraph by doxygen 1.7.6.1. |