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 37 of file TimerStack.h.

Constructor & Destructor Documentation

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

Definition at line 39 of file TimerStack.h.

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

Definition at line 46 of file TimerStack.h.

46 {}

Member Function Documentation

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

Definition at line 43 of file TimerStack.h.

References first_.

Referenced by TimerStack::push().

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

Definition at line 44 of file TimerStack.h.

References main_.

Referenced by TimerStack::push().

44 { return *main_; }
TimingReport::Item * main_
Definition: TimerStack.h:48

Member Data Documentation

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

Definition at line 47 of file TimerStack.h.

Referenced by first().

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

Definition at line 48 of file TimerStack.h.

Referenced by main().

std::string TimerStack::Timer::name_
private

Definition at line 49 of file TimerStack.h.