ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
flann::StartStopTimer Class Reference

#include <timer.h>

Public Member Functions

 StartStopTimer ()
 
void start ()
 
double stop ()
 
void reset ()
 

Public Attributes

double value
 

Detailed Description

A start-stop timer class.

Can be used to time portions of code.

Definition at line 45 of file timer.h.

Constructor & Destructor Documentation

◆ StartStopTimer()

flann::StartStopTimer::StartStopTimer ( )
inline

Constructor.

Definition at line 59 of file timer.h.

References reset().

Member Function Documentation

◆ reset()

void flann::StartStopTimer::reset ( )
inline

Resets the timer value to 0.

Definition at line 86 of file timer.h.

References value.

Referenced by StartStopTimer().

◆ start()

void flann::StartStopTimer::start ( )
inline

Starts the timer.

Definition at line 67 of file timer.h.

Referenced by flann::search_with_ground_truth().

◆ stop()

double flann::StartStopTimer::stop ( )
inline

Stops the timer and updates timer value.

Definition at line 75 of file timer.h.

References value.

Referenced by flann::search_with_ground_truth().

Member Data Documentation

◆ value

double flann::StartStopTimer::value

Value of the timer.

Definition at line 53 of file timer.h.

Referenced by reset(), flann::search_with_ground_truth(), and stop().


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