HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_StopWatch Class Reference

#include <UT_StopWatch.h>

Public Member Functions

void clear ()
 
void start ()
 
fpreal64 lap () const
 
fpreal64 stop ()
 
void resume ()
 
fpreal64 restart ()
 
fpreal64 getTime () const
 
bool isRunning () const
 
fpreal64 operator- (const UT_StopWatch &other)
 
SYS_TimeVal getStartTime () const
 

Protected Attributes

bool myRunning = false
 
fpreal64 myElapsedTime = 0
 
SYS_TimeVal myStartTime
 

Detailed Description

A simple stopwatch class.

It implements functions much like a regular stopwatch: start(): resets stopwatch to zero, and starts it. lap(): returns the elapsed time. stop(): stop the stopwatch resume(): resumes the stopwatch getTime(): returns elapsed time, may be used when stopped. operator-: difference in start time between two watches

Definition at line 20 of file UT_StopWatch.h.

Member Function Documentation

void UT_StopWatch::clear ( )
inline

Definition at line 156 of file UT_StopWatch.h.

SYS_TimeVal UT_StopWatch::getStartTime ( ) const
inline

Definition at line 233 of file UT_StopWatch.h.

fpreal64 UT_StopWatch::getTime ( ) const
inline

Definition at line 215 of file UT_StopWatch.h.

bool UT_StopWatch::isRunning ( ) const
inline

Definition at line 221 of file UT_StopWatch.h.

fpreal64 UT_StopWatch::lap ( ) const
inline

Definition at line 169 of file UT_StopWatch.h.

fpreal64 UT_StopWatch::operator- ( const UT_StopWatch other)
inline

Definition at line 227 of file UT_StopWatch.h.

fpreal64 UT_StopWatch::restart ( )
inline

Definition at line 207 of file UT_StopWatch.h.

void UT_StopWatch::resume ( )
inline

Definition at line 197 of file UT_StopWatch.h.

void UT_StopWatch::start ( )
inline

Definition at line 162 of file UT_StopWatch.h.

fpreal64 UT_StopWatch::stop ( )
inline

Definition at line 182 of file UT_StopWatch.h.

Member Data Documentation

fpreal64 UT_StopWatch::myElapsedTime = 0
protected

Definition at line 38 of file UT_StopWatch.h.

bool UT_StopWatch::myRunning = false
protected

Definition at line 37 of file UT_StopWatch.h.

SYS_TimeVal UT_StopWatch::myStartTime
protected

Definition at line 40 of file UT_StopWatch.h.


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