OpenCV  3.2.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
 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...
 

Detailed Description

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:

tm.start();
// do something ...
tm.stop();
std::cout << tm.getTimeSec();
See also
getTickCount, getTickFrequency

Constructor & Destructor Documentation

cv::TickMeter::TickMeter ( )
inline

the default constructor

Member Function Documentation

int64 cv::TickMeter::getCounter ( ) const
inline

returns internal counter value.

double cv::TickMeter::getTimeMicro ( ) const
inline

returns passed time in microseconds.

double cv::TickMeter::getTimeMilli ( ) const
inline

returns passed time in milliseconds.

double cv::TickMeter::getTimeSec ( ) const
inline

returns passed time in seconds.

References cv::getTickFrequency().

Referenced by cv::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

int64 cv::TickMeter::getTimeTicks ( ) const
inline

returns counted ticks.

void cv::TickMeter::reset ( )
inline

resets internal values.

void cv::TickMeter::start ( )
inline

starts counting ticks.

References cv::getTickCount().

Here is the call graph for this function:

void cv::TickMeter::stop ( )
inline

stops counting ticks.

References cv::getTickCount().

Here is the call graph for this function:


The documentation for this class was generated from the following file: