pcl::ScopeTime Class Reference
[Module common]

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

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. Example:

 {
   pcl::ScopeTime t1 ("calculation");

   // ... perform calculation here
 }

Definition at line 114 of file time.h.


Constructor & Destructor Documentation

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

Definition at line 117 of file time.h.

References pcl::StopWatch::start_time_.

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

Definition at line 123 of file time.h.

References pcl::StopWatch::start_time_.

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

Definition at line 129 of file time.h.

References pcl::StopWatch::getTime().


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