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 73 of file timer.h.

Constructor & Destructor Documentation

◆ StartStopTimer()

rtflann::StartStopTimer::StartStopTimer ( )
inline

Constructor.

Definition at line 115 of file timer.h.

Member Function Documentation

◆ reset()

void rtflann::StartStopTimer::reset ( )
inline

Resets the timer value to 0.

Definition at line 142 of file timer.h.

◆ start()

void rtflann::StartStopTimer::start ( )
inline

Starts the timer.

Definition at line 123 of file timer.h.

◆ stop()

double rtflann::StartStopTimer::stop ( )
inline

Stops the timer and updates timer value.

Definition at line 131 of file timer.h.

Member Data Documentation

◆ startTime

clock_t rtflann::StartStopTimer::startTime
private

Definition at line 103 of file timer.h.

◆ value

double rtflann::StartStopTimer::value

Value of the timer.

Definition at line 109 of file timer.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:29