CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TimerStack::Timer Class Reference

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

#include <TimerStack.h>

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.

40  :
41  first_( &( (*TimingReport::current())["firstcall_"+name] ) ),
42  main_( &( (*TimingReport::current())[name] ) ),
43  name_(name){}
TimingReport::Item * main_
Definition: TimerStack.h:49
static TimingReport * current()
Definition: TimingReport.cc:21
TimingReport::Item * first_
Definition: TimerStack.h:48
std::string name_
Definition: TimerStack.h:50
TimerStack::Timer::Timer ( )
inlineprivate

Definition at line 47 of file TimerStack.h.

47 {}

Member Function Documentation

TimingReport::Item& TimerStack::Timer::first ( )
inline

Definition at line 44 of file TimerStack.h.

References first_.

Referenced by TimerStack::push().

44 { return *first_; }
TimingReport::Item * first_
Definition: TimerStack.h:48
TimingReport::Item& TimerStack::Timer::main ( )
inline

Definition at line 45 of file TimerStack.h.

References main_.

Referenced by TimerStack::push().

45 { return *main_; }
TimingReport::Item * main_
Definition: TimerStack.h:49

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.