OpenCV
3.3.0-dev
Open Source Computer Vision
|
a Class to measure passing time. More...
#include "utility.hpp"
Public Member Functions | |
TickMeter () | |
the default constructor More... | |
int64 | getCounter () const |
double | getTimeMicro () const |
double | getTimeMilli () const |
double | getTimeSec () const |
int64 | getTimeTicks () const |
void | reset () |
void | start () |
void | stop () |
a Class to measure passing time.
The class computes passing time by counting the number of ticks per second. That is, the following code computes the execution time in seconds:
It is also possible to compute the average time over multiple runs:
|
inline |
the default constructor
|
inline |
returns internal counter value.
|
inline |
returns passed time in microseconds.
|
inline |
returns passed time in milliseconds.
|
inline |
returns passed time in seconds.
|
inline |
returns counted ticks.
|
inline |
resets internal values.
|
inline |
starts counting ticks.
|
inline |
stops counting ticks.