iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Attributes | List of all members
imstk::UPSCounter Class Reference

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< StopWatchm_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.
 

Detailed Description

Utility class to count updates per second.

Definition at line 133 of file imstkTimer.h.


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