#include <src/libigl/igl/Timer.h>
◆ Timer()
32 :
34#ifdef WIN32
35 frequency(),
38#elif __APPLE__
41#else
44#endif
45 {
46#ifdef WIN32
47 QueryPerformanceFrequency(&frequency);
50#elif __APPLE__
53#else
56#endif
57
59 }
timeval startCount
Definition Timer.h:173
timeval endCount
Definition Timer.h:174
int stopped
Definition Timer.h:163
References endCount, startCount, and stopped.
◆ ~Timer()
◆ getElapsedTime()
| double igl::Timer::getElapsedTime |
( |
| ) |
|
|
inline |
◆ getElapsedTimeInMicroSec()
| double igl::Timer::getElapsedTimeInMicroSec |
( |
| ) |
|
|
inline |
133 {
134 double startTimeInMicroSec = 0;
135 double endTimeInMicroSec = 0;
136
137#ifdef WIN32
140
141 startTimeInMicroSec =
142 startCount.QuadPart * (1000000.0 / frequency.QuadPart);
143 endTimeInMicroSec =
endCount.QuadPart * (1000000.0 / frequency.QuadPart);
144#elif __APPLE__
147
149#else
152
153 startTimeInMicroSec =
156#endif
157
158 return endTimeInMicroSec - startTimeInMicroSec;
159 }
int gettimeofday(struct timeval *tp, struct timezone *tzp)
Definition unistd.cpp:21
References endCount, gettimeofday(), startCount, and stopped.
Referenced by getElapsedTimeInMilliSec(), and getElapsedTimeInSec().
◆ getElapsedTimeInMilliSec()
| double igl::Timer::getElapsedTimeInMilliSec |
( |
| ) |
|
|
inline |
◆ getElapsedTimeInSec()
| double igl::Timer::getElapsedTimeInSec |
( |
| ) |
|
|
inline |
◆ start()
| void igl::Timer::start |
( |
| ) |
|
|
inline |
◆ stop()
| void igl::Timer::stop |
( |
| ) |
|
|
inline |
◆ endCount
| timeval igl::Timer::endCount |
|
private |
◆ startCount
| timeval igl::Timer::startCount |
|
private |
◆ stopped
The documentation for this class was generated from the following file: