![]() |
OpenCV
4.5.2
Open Source Computer Vision
|
a Class to measure passing time. More...
#include <opencv2/core/utility.hpp>
Public Member Functions | |
| TickMeter () | |
| the default constructor More... | |
| double | getAvgTimeMilli () const |
| returns average time in milliseconds More... | |
| double | getAvgTimeSec () const |
| returns average time in seconds More... | |
| int64 | getCounter () const |
| returns internal counter value. More... | |
| double | getFPS () const |
| returns average FPS (frames per second) 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 average time in milliseconds
|
inline |
returns average time in seconds
|
inline |
returns internal counter value.
|
inline |
returns average FPS (frames per second) 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.
1.8.9.1