|
iMSTK
Interactive Medical Simulation Toolkit
|
Utility class to count updates per second. More...
#include <imstkTimer.h>
Public Member Functions | |
| UPSCounter () | |
| Constructor/Destructor. | |
| void | reset () |
| Reset the variable that keep track of ups. | |
| void | setStartPointOfUpdate () |
| Set the start point to the update. | |
| void | setEndPointOfUpdate () |
| Set the end point to the update. | |
| unsigned int | getUPS () const |
| Get the updates per second. | |
Protected Attributes | |
| std::shared_ptr< StopWatch > | m_timer |
| Timer. | |
| double | m_accumulatedTimer |
| Accumulated time (always < 1 sec) | |
| unsigned int | m_ups |
| Most up-to-date ups. | |
| unsigned int | m_updateCount |
| Current update count. | |
Utility class to count updates per second.
Definition at line 133 of file imstkTimer.h.
1.8.13