Public Member Functions | Private Attributes
pcl::ScopeTime Class Reference

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

#include <time.h>

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

List of all members.

Public Member Functions

 ScopeTime (const char *title)
 ScopeTime ()
 ~ScopeTime ()

Private Attributes

std::string title_

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 110 of file common/time.h.


Constructor & Destructor Documentation

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

Definition at line 113 of file common/time.h.

Definition at line 119 of file common/time.h.

Definition at line 125 of file common/time.h.


Member Data Documentation

std::string pcl::ScopeTime::title_ [private]

Definition at line 132 of file common/time.h.


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


pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:20:09