OpenCV  3.2.0-dev
Open Source Computer Vision
cvflann::StartStopTimer Class Reference

A start-stop timer class. More...

#include "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

cvflann::StartStopTimer::StartStopTimer ( )
inline

Constructor.

References reset().

Here is the call graph for this function:

Member Function Documentation

void cvflann::StartStopTimer::reset ( )
inline

Resets the timer value to 0.

Referenced by StartStopTimer().

Here is the caller graph for this function:

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:

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

double cvflann::StartStopTimer::value

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