CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

edm::RunDualStopwatches Class Reference

#include <RunStopwatch.h>

List of all members.

Public Types

typedef boost::shared_ptr
< CPUTimer
StopwatchPointer

Public Member Functions

 RunDualStopwatches (const StopwatchPointer &ptr1, CPUTimer *const ptr2)
 ~RunDualStopwatches ()

Private Attributes

StopwatchPointer stopwatch1_
CPUTimer *const stopwatch2_

Detailed Description

Definition at line 42 of file RunStopwatch.h.


Member Typedef Documentation

Definition at line 45 of file RunStopwatch.h.


Constructor & Destructor Documentation

edm::RunDualStopwatches::RunDualStopwatches ( const StopwatchPointer ptr1,
CPUTimer *const  ptr2 
) [inline]

Definition at line 47 of file RunStopwatch.h.

References stopwatch1_, and stopwatch2_.

                                                                          : stopwatch1_(ptr1),stopwatch2_(ptr2) {
      if(stopwatch1_ && 0 != stopwatch2_) {
        stopwatch1_->start();
      }
    }
edm::RunDualStopwatches::~RunDualStopwatches ( ) [inline]

Definition at line 53 of file RunStopwatch.h.

References edm::CPUTimer::add(), stopwatch1_, and stopwatch2_.

                         {
      if (stopwatch1_ && 0 != stopwatch2_) {
        stopwatch2_->add(stopwatch1_->stop());
      }
    }

Member Data Documentation

Definition at line 60 of file RunStopwatch.h.

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

Definition at line 61 of file RunStopwatch.h.

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