CMS 3D CMS Logo

TimerStack::Timer Class Reference

TTimer is a container for a timer name and associated timers (TimeReport::Item's). More...

#include <Utilities/Timing/interface/TimerStack.h>

List of all members.

Public Member Functions

TimingReport::Itemfirst ()
TimingReport::Itemmain ()
 Timer (const std::string &name)

Private Member Functions

 Timer ()

Private Attributes

TimingReport::Itemfirst_
TimingReport::Itemmain_
std::string name_


Detailed Description

TTimer is a container for a timer name and associated timers (TimeReport::Item's).

Definition at line 38 of file TimerStack.h.


Constructor & Destructor Documentation

TimerStack::Timer::Timer ( const std::string &  name  )  [inline]

Definition at line 40 of file TimerStack.h.

00040                                   :
00041         first_( &( (*TimingReport::current())["firstcall_"+name] ) ),
00042         main_( &( (*TimingReport::current())[name] ) ),
00043         name_(name){}
      TimingReport::Item& first() { return *first_; }

TimerStack::Timer::Timer (  )  [inline, private]

Definition at line 47 of file TimerStack.h.

00047 {}


Member Function Documentation

TimingReport::Item& TimerStack::Timer::first ( void   )  [inline]

Definition at line 44 of file TimerStack.h.

References first_.

Referenced by TimerStack::push().

00044 { return *first_; }

TimingReport::Item& TimerStack::Timer::main (  )  [inline]

Definition at line 45 of file TimerStack.h.

References main_.

Referenced by TimerStack::push().

00045 { return *main_; }


Member Data Documentation

TimingReport::Item* TimerStack::Timer::first_ [private]

Definition at line 48 of file TimerStack.h.

Referenced by first().

TimingReport::Item* TimerStack::Timer::main_ [private]

Definition at line 49 of file TimerStack.h.

Referenced by main().

std::string TimerStack::Timer::name_ [private]

Definition at line 50 of file TimerStack.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:33:28 2009 for CMSSW by  doxygen 1.5.4