EstervQrCode 1.1.1
Library for qr code manipulation
Public Member Functions | List of all members

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

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:

It is also possible to compute the average time over multiple runs:

See also
getTickCount, getTickFrequency

Constructor & Destructor Documentation

◆ TickMeter()

CV_WRAP cv::TickMeter::TickMeter ( )
inline

the default constructor

Member Function Documentation

◆ getAvgTimeMilli()

CV_WRAP double cv::TickMeter::getAvgTimeMilli ( ) const
inline

returns average time in milliseconds

◆ getAvgTimeSec()

CV_WRAP double cv::TickMeter::getAvgTimeSec ( ) const
inline

returns average time in seconds

◆ getCounter()

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

returns internal counter value.

◆ getFPS()

CV_WRAP double cv::TickMeter::getFPS ( ) const
inline

returns average FPS (frames per second) value.

◆ getTimeMicro()

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

returns passed time in microseconds.

◆ getTimeMilli()

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

returns passed time in milliseconds.

◆ getTimeSec()

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

returns passed time in seconds.

◆ getTimeTicks()

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

returns counted ticks.

◆ reset()

CV_WRAP void cv::TickMeter::reset ( )
inline

resets internal values.

◆ start()

CV_WRAP void cv::TickMeter::start ( )
inline

starts counting ticks.

◆ stop()

CV_WRAP void cv::TickMeter::stop ( )
inline

stops counting ticks.


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