OpenSceneGraph
3.5.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. More... | |
void | setStartTick () |
Set the start. More... | |
void | setStartTick (Timer_t t) |
Timer_t | getStartTick () const |
double | time_s () const |
Get elapsed time in seconds. More... | |
double | time_m () const |
Get elapsed time in milliseconds. More... | |
double | time_u () const |
Get elapsed time in microseconds. More... | |
double | time_n () const |
Get elapsed time in nanoseconds. More... | |
double | delta_s (Timer_t t1, Timer_t t2) const |
Get the time in seconds between timer ticks t1 and t2. More... | |
double | delta_m (Timer_t t1, Timer_t t2) const |
Get the time in milliseconds between timer ticks t1 and t2. More... | |
double | delta_u (Timer_t t1, Timer_t t2) const |
Get the time in microseconds between timer ticks t1 and t2. More... | |
double | delta_n (Timer_t t1, Timer_t t2) const |
Get the time in nanoseconds between timer ticks t1 and t2. More... | |
double | getSecondsPerTick () const |
Get the number of seconds per tick. More... | |
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 |
Get the time in milliseconds between timer ticks t1 and t2.
Get the time in nanoseconds between timer ticks t1 and t2.
Get the time in seconds between timer ticks t1 and t2.
Get the time in microseconds between timer ticks t1 and t2.
|
inline |
Get the number of seconds per tick.
|
inline |
|
static |
|
inline |
Set the start.
Timer_t osg::Timer::tick | ( | ) | const |
Get the timers tick value.
|
inline |
Get elapsed time in milliseconds.
|
inline |
Get elapsed time in nanoseconds.
|
inline |
Get elapsed time in seconds.
|
inline |
Get elapsed time in microseconds.
|
protected |
|
protected |
Generated at Wed Nov 11 2015 22:14:46 for the OpenSceneGraph by doxygen 1.8.10. |