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

rtflann::StartStopTimer::StartStopTimer ( )
inline

Constructor.

Definition at line 59 of file timer.h.

Member Function Documentation

void rtflann::StartStopTimer::reset ( )
inline

Resets the timer value to 0.

Definition at line 86 of file timer.h.

void rtflann::StartStopTimer::start ( )
inline

Starts the timer.

Definition at line 67 of file timer.h.

double rtflann::StartStopTimer::stop ( )
inline

Stops the timer and updates timer value.

Definition at line 75 of file timer.h.

Member Data Documentation

clock_t rtflann::StartStopTimer::startTime
private

Definition at line 47 of file timer.h.

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 Wed Jun 5 2019 22:43:43