| 
    iMSTK
    
   Interactive Medical Simulation Toolkit 
   | 
 
CPU timer. More...
#include <imstkTimer.h>


Public Member Functions | |
| CpuTimer () | |
| Constructor.  | |
| ~CpuTimer ()=default | |
| Destructor.  | |
| virtual void | start () override | 
| Start the appropriate timer.  | |
| double | getTimeElapsed (const TimeUnitType unitType=TimeUnitType::milliSeconds) override | 
| Returns the CPU time elapsed since calling start NOTE: This measurement is not entirely accurate especially if one tries to measure CPU time used by certain calls in a multi-threaded application.  | |
  Public Member Functions inherited from imstk::StopWatch | |
| virtual void | stop () | 
| Start the appropriate timer.  | |
| void | storeLap (std::string const &lapName) | 
| Start the appropriate timer.  | |
| void | storeLap () | 
| void | printLapTimes () | 
| Print all the lap times.  | |
| virtual void | reset () | 
| Clears all the laps.  | |
| double | getTotalLapTimes () | 
| Returns the total time from all.  | |
| void | printTimeElapsed (std::string const &name=std::string("noName"), const TimeUnitType unitType=TimeUnitType::milliSeconds) | 
| Print the elapsed time.  | |
Static Public Attributes | |
| static const double | cpuTimerConstants [4] | 
  Static Public Attributes inherited from imstk::StopWatch | |
| static const double | wcTimerConstants [4] | 
Additional Inherited Members | |
  Public Types inherited from imstk::StopWatch | |
| enum | TimerState { started, stopped } | 
| enum | TimeUnitType { milliSeconds, seconds, minutes, hours } | 
  Static Public Member Functions inherited from imstk::StopWatch | |
| static std::string | getTimeAndDate () | 
| Returns a string with current date and time in UTC.  | |
CPU timer.
Definition at line 97 of file imstkTimer.h.
      
  | 
  static | 
Definition at line 100 of file imstkTimer.h.
 1.8.13