CMS 3D CMS Logo

Public Member Functions | Private Attributes

TimeMe Class Reference

#include <TimingReport.h>

List of all members.

Public Member Functions

std::pair< double, double > lap () const
 TimeMe (TimingReport::Item &iitem, bool cpu=true)
 TimeMe (const std::string &name, bool cpu=true)
 ~TimeMe ()

Private Attributes

TimingReport::Itemitem

Detailed Description

a class to time a "scope" to be used as a "Sentry". Just create a TimeMe object giving it a name; exiting the scope the object will be deleted; the constuctor starts the timing. the destructor stops it.

Definition at line 124 of file TimingReport.h.


Constructor & Destructor Documentation

TimeMe::TimeMe ( const std::string &  name,
bool  cpu = true 
) [inline, explicit]
TimeMe::TimeMe ( TimingReport::Item iitem,
bool  cpu = true 
) [inline, explicit]
TimeMe::~TimeMe ( ) [inline]

Definition at line 146 of file TimingReport.h.

References item, and TimingReport::Item::stop().

            {
    item.stop();
  }

Member Function Documentation

std::pair<double,double> TimeMe::lap ( ) const [inline]

Member Data Documentation

Definition at line 152 of file TimingReport.h.

Referenced by lap(), TimeMe(), and ~TimeMe().