OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cvflann::StartStopTimer Class Reference

A start-stop timer class. More...

#include <opencv2/flann/timer.h>

Collaboration diagram for cvflann::StartStopTimer:

Public Member Functions

 StartStopTimer ()
 Constructor. More...
 
void reset ()
 Resets the timer value to 0. More...
 
void start ()
 Starts the timer. More...
 
void stop ()
 Stops the timer and updates timer value. More...
 

Public Attributes

double value
 Value of the timer. More...
 

Detailed Description

A start-stop timer class.

Can be used to time portions of code.

Constructor & Destructor Documentation

◆ StartStopTimer()

cvflann::StartStopTimer::StartStopTimer ( )
inline

Constructor.

References reset().

Here is the call graph for this function:

Member Function Documentation

◆ reset()

void cvflann::StartStopTimer::reset ( )
inline

Resets the timer value to 0.

Referenced by StartStopTimer().

Here is the caller graph for this function:

◆ start()

void cvflann::StartStopTimer::start ( )
inline

Starts the timer.

References cv::getTickCount().

Referenced by cvflann::AutotunedIndex< Distance >::getType(), and cvflann::search_with_ground_truth().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop()

void cvflann::StartStopTimer::stop ( )
inline

Stops the timer and updates timer value.

References cv::getTickCount(), and cv::getTickFrequency().

Referenced by cvflann::AutotunedIndex< Distance >::getType(), and cvflann::search_with_ground_truth().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ value

double cvflann::StartStopTimer::value

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