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 19 of file RunStopwatch.h.

Member Typedef Documentation

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

Definition at line 22 of file RunStopwatch.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file RunStopwatch.h.

References stopwatch_.

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

Definition at line 30 of file RunStopwatch.h.

References stopwatch_.

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

Member Data Documentation

StopwatchPointer edm::RunStopwatch::stopwatch_
private

Definition at line 37 of file RunStopwatch.h.

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