a Class to measure passing time. More...
#include <utility.hpp>
Public Member Functions | |
CV_WRAP | TickMeter () |
the default constructor More... | |
CV_WRAP void | start () |
starts counting ticks. More... | |
CV_WRAP void | stop () |
stops counting ticks. More... | |
CV_WRAP int64 | getTimeTicks () const |
returns counted ticks. More... | |
CV_WRAP double | getTimeMicro () const |
returns passed time in microseconds. More... | |
CV_WRAP double | getTimeMilli () const |
returns passed time in milliseconds. More... | |
CV_WRAP double | getTimeSec () const |
returns passed time in seconds. More... | |
CV_WRAP int64 | getCounter () const |
returns internal counter value. More... | |
CV_WRAP double | getFPS () const |
returns average FPS (frames per second) value. More... | |
CV_WRAP double | getAvgTimeSec () const |
returns average time in seconds More... | |
CV_WRAP double | getAvgTimeMilli () const |
returns average time in milliseconds More... | |
CV_WRAP void | reset () |
resets internal values. 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 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 |
resets internal values.
|
inline |
starts counting ticks.
|
inline |
stops counting ticks.