CMS 3D CMS Logo

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

#include <RunStopwatch.h>

Public Types

typedef boost::shared_ptr
< CPUTimer
StopwatchPointer
 

Public Member Functions

 RunStopwatch (const StopwatchPointer &ptr)
 
 ~RunStopwatch ()
 

Private Attributes

StopwatchPointer stopwatch_
 

Detailed Description

Definition at line 20 of file RunStopwatch.h.

Member Typedef Documentation

typedef boost::shared_ptr<CPUTimer> edm::RunStopwatch::StopwatchPointer

Definition at line 23 of file RunStopwatch.h.

Constructor & Destructor Documentation

edm::RunStopwatch::RunStopwatch ( const StopwatchPointer ptr)
inline

Definition at line 25 of file RunStopwatch.h.

References stopwatch_.

25  : stopwatch_(ptr) {
26  if(stopwatch_) {
27  stopwatch_->start();
28  }
29  }
StopwatchPointer stopwatch_
Definition: RunStopwatch.h:38
edm::RunStopwatch::~RunStopwatch ( )
inline

Definition at line 31 of file RunStopwatch.h.

References stopwatch_.

31  {
32  if(stopwatch_) {
33  stopwatch_->stop();
34  }
35  }
StopwatchPointer stopwatch_
Definition: RunStopwatch.h:38

Member Data Documentation

StopwatchPointer edm::RunStopwatch::stopwatch_
private

Definition at line 38 of file RunStopwatch.h.

Referenced by RunStopwatch(), and ~RunStopwatch().