Public Member Functions | Public Attributes | Private Attributes | List of all members
rtflann::StartStopTimer Class Reference

#include <timer.h>

Public Member Functions

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

Public Attributes

double value
 

Private Attributes

clock_t startTime
 

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()

rtflann::StartStopTimer::StartStopTimer ( )
inline

Constructor.

Definition at line 59 of file timer.h.

Member Function Documentation

◆ reset()

void rtflann::StartStopTimer::reset ( )
inline

Resets the timer value to 0.

Definition at line 86 of file timer.h.

◆ start()

void rtflann::StartStopTimer::start ( )
inline

Starts the timer.

Definition at line 67 of file timer.h.

◆ stop()

double rtflann::StartStopTimer::stop ( )
inline

Stops the timer and updates timer value.

Definition at line 75 of file timer.h.

Member Data Documentation

◆ startTime

clock_t rtflann::StartStopTimer::startTime
private

Definition at line 47 of file timer.h.

◆ value

double rtflann::StartStopTimer::value

Value of the timer.

Definition at line 53 of file timer.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00