#include <Timer.hpp>
Definition at line 31 of file Timer.hpp.
Timer::Timer |
( |
bool |
bStart = false | ) |
|
Definition at line 69 of file Timer.cpp.
72 QueryPerformanceFrequency(&frequency);
73 startCount.QuadPart = 0;
74 endCount.QuadPart = 0;
76 startCount.tv_sec = startCount.tv_usec = 0;
77 endCount.tv_sec = endCount.tv_usec = 0;
81 startTimeInMicroSec = 0;
82 endTimeInMicroSec = 0;
double Timer::getElapsedTime |
( |
| ) |
|
Definition at line 127 of file Timer.cpp.
double getElapsedTimeInSec()
double Timer::getElapsedTimeInMicroSec |
( |
| ) |
|
Definition at line 90 of file Timer.cpp.
93 if (!stopped) QueryPerformanceCounter(&endCount);
96 startCount.QuadPart * (1000000.0 / frequency.QuadPart);
97 endTimeInMicroSec = endCount.QuadPart * (1000000.0 / frequency.QuadPart);
99 if (!stopped) gettimeofday(&endCount,
nullptr);
101 startTimeInMicroSec = (startCount.tv_sec * 1000000.0) + startCount.tv_usec;
102 endTimeInMicroSec = (endCount.tv_sec * 1000000.0) + endCount.tv_usec;
105 return endTimeInMicroSec - startTimeInMicroSec;
double Timer::getElapsedTimeInMilliSec |
( |
| ) |
|
Definition at line 111 of file Timer.cpp.
double getElapsedTimeInMicroSec()
double Timer::getElapsedTimeInSec |
( |
| ) |
|
Definition at line 119 of file Timer.cpp.
double getElapsedTimeInMicroSec()
Definition at line 41 of file Timer.cpp.
45 QueryPerformanceCounter(&startCount);
47 gettimeofday(&startCount,
nullptr);
Definition at line 55 of file Timer.cpp.
60 QueryPerformanceCounter(&endCount);
62 gettimeofday(&endCount,
nullptr);
The documentation for this class was generated from the following files:
- /usr/local/src/opentxs/include/opentxs/core/util/Timer.hpp
- /usr/local/src/opentxs/src/core/util/Timer.cpp