CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

edm::RunStopwatch Class Reference

#include <RunStopwatch.h>

List of all members.

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_.

                                             : stopwatch_(ptr) {
      if(stopwatch_) {
        stopwatch_->start();
      }
    }
edm::RunStopwatch::~RunStopwatch ( ) [inline]

Definition at line 31 of file RunStopwatch.h.

References stopwatch_.

                   {
      if(stopwatch_) {
        stopwatch_->stop();
      }
    }

Member Data Documentation

Definition at line 38 of file RunStopwatch.h.

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