OpenCV
3.2.0
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:
cv::TickMeter::TickMeter | ( | ) |
the default constructor
int64 cv::TickMeter::getCounter | ( | ) | const |
returns internal counter value.
double cv::TickMeter::getTimeMicro | ( | ) | const |
returns passed time in microseconds.
double cv::TickMeter::getTimeMilli | ( | ) | const |
returns passed time in milliseconds.
double cv::TickMeter::getTimeSec | ( | ) | const |
returns passed time in seconds.
int64 cv::TickMeter::getTimeTicks | ( | ) | const |
returns counted ticks.
void cv::TickMeter::reset | ( | ) |
resets internal values.
void cv::TickMeter::start | ( | ) |
starts counting ticks.
void cv::TickMeter::stop | ( | ) |
stops counting ticks.