Timer
class interface.
Sample code
const double proc_ms = procTimer.
toc();
std::cout << "Processing Time : " << proc_ms << " ms" << std::endl;
Definition at line 34 of file nvx_timer.hpp.
nvx::Timer::Timer |
( |
bool |
_dumpStatistics = false , |
|
|
const char * |
_name = "" |
|
) |
| |
Timer class constructor.
- Parameters
-
[in] | _dumpStatistics | Specifies a flag variable that controls whether to print timer statistics when it's destructor is called. |
[in] | _name | Specifies the label of the timer. If _dumpStatistics is true, this label prints in the log when the timer object desctructor is called. |
Starts (or restarts) timer.
double nvx::Timer::toc |
( |
| ) |
|
Returns the elapsed time since the most recent tic() function call.
- Returns
- The elapsed time since the most recent call to the tic() function (in ms).
The documentation for this class was generated from the following file: