Developer Documentation
|
#include <ACG/Utils/StopWatch.hh>
Public Member Functions | |
StopWatch () | |
Constructor. | |
~StopWatch () | |
Destructor. | |
void | start () |
Start time measurement. | |
double | restart () |
Restart, return time elapsed until now. | |
double | stop () |
Stop time measurement, return time. | |
double | elapsed () const |
Get the total time in milli-seconds (watch has to be stopped). | |
Private Member Functions | |
timeval | current_time () const |
Private Attributes | |
timeval | starttime_ |
timeval | endtime_ |
This class can be used for measuring time, providing milli-second precision by using the gettimeofday() funtion. It is e.g. used in the class ACG::TimedTracing.
Definition at line 96 of file StopWatch.hh.