Point Cloud Library (PCL)  1.3.1
Public Member Functions
pcl::ScopeTime Class Reference

Class to measure the time spent in a scope. More...

#include <pcl/common/time.h>

Inheritance diagram for pcl::ScopeTime:
Inheritance graph
[legend]
Collaboration diagram for pcl::ScopeTime:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScopeTime (const char *title)
 ~ScopeTime ()
float getTime ()
 Retrieve the time in milliseconds spent since the last call to reset().
float getTimeSeconds ()
 Retrieve the time in seconds spent since the last call to reset().
void reset ()
 Reset the stopwatch to 0.

Detailed Description

Class to measure the time spent in a scope.

To use this class, e.g. to measure the time spent in a function, just create an instance at the beginning of the function.


Constructor & Destructor Documentation

pcl::ScopeTime::ScopeTime ( const char *  title) [inline]

Definition at line 101 of file time.h.

pcl::ScopeTime::~ScopeTime ( ) [inline]

Definition at line 106 of file time.h.


Member Function Documentation

float pcl::StopWatch::getTime ( ) [inline, inherited]

Retrieve the time in milliseconds spent since the last call to reset().

Definition at line 67 of file time.h.

float pcl::StopWatch::getTimeSeconds ( ) [inline, inherited]

Retrieve the time in seconds spent since the last call to reset().

Definition at line 75 of file time.h.

void pcl::StopWatch::reset ( ) [inline, inherited]

Reset the stopwatch to 0.

Definition at line 82 of file time.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines