Developer Documentation
ACG::StopWatch Class Reference

#include <ACG/Utils/StopWatch.hh>

Public Member Functions

 StopWatch ()
 ~StopWatch ()
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_

Detailed Description

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.

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