#include <ACG/Utils/StopWatch.hh>
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 90 of file StopWatch.hh.
◆ StopWatch()
ACG::StopWatch::StopWatch |
( |
| ) |
|
|
inline |
◆ ~StopWatch()
ACG::StopWatch::~StopWatch |
( |
| ) |
|
|
inline |
◆ current_time()
timeval ACG::StopWatch::current_time |
( |
| ) |
const |
|
inlineprivate |
◆ elapsed()
double ACG::StopWatch::elapsed |
( |
| ) |
const |
|
inline |
Get the total time in milli-seconds (watch has to be stopped).
Definition at line 143 of file StopWatch.hh.
◆ restart()
double ACG::StopWatch::restart |
( |
| ) |
|
|
inline |
Restart, return time elapsed until now.
Definition at line 119 of file StopWatch.hh.
◆ start()
void ACG::StopWatch::start |
( |
| ) |
|
|
inline |
◆ stop()
double ACG::StopWatch::stop |
( |
| ) |
|
|
inline |
Stop time measurement, return time.
Definition at line 132 of file StopWatch.hh.
◆ endtime_
timeval ACG::StopWatch::endtime_ |
|
private |
◆ starttime_
timeval ACG::StopWatch::starttime_ |
|
private |
The documentation for this class was generated from the following file: