#include <IndriTimer.hpp>
Public Member Functions | |
IndriTimer () | |
void | start () |
start the timer | |
void | stop () |
pause the timer | |
void | reset () |
reset the timer | |
UINT64 | elapsedTime () const |
elapsed time since started as an unsigned 64 bit integer | |
void | printElapsedSeconds (std::ostream &out) const |
void | printElapsedMicroseconds (std::ostream &out) const |
Static Public Member Functions | |
UINT64 | currentTime () |
the current time as an unsigned 64 bit integer | |
Private Attributes | |
UINT64 | _elapsed |
when did we start. | |
UINT64 | _start |
bool | _stopped |
|
|
|
the current time as an unsigned 64 bit integer
|
|
elapsed time since started as an unsigned 64 bit integer
|
|
Print elapsed microseconds to an output stream.
|
|
Print elapsed seconds to an output stream.
|
|
reset the timer
|
|
start the timer
|
|
pause the timer
|
|
when did we start.
|
|
|
|
|