a Class to measure passing time. More...
#include <opencv2/core/utility.hpp>
Public Member Functions | |
TickMeter () | |
the default constructor More... | |
int64 | getCounter () const |
returns internal counter value. More... | |
double | getTimeMicro () const |
returns passed time in microseconds. More... | |
double | getTimeMilli () const |
returns passed time in milliseconds. More... | |
double | getTimeSec () const |
returns passed time in seconds. More... | |
int64 | getTimeTicks () const |
returns counted ticks. More... | |
void | reset () |
resets internal values. More... | |
void | start () |
starts counting ticks. More... | |
void | stop () |
stops counting ticks. More... | |
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.
References cv::getTickFrequency().
Referenced by cv::operator<<().
|
inline |
returns counted ticks.
|
inline |
resets internal values.
|
inline |
|
inline |