#include <RunStopwatch.h>
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_ |
Definition at line 42 of file RunStopwatch.h.
typedef boost::shared_ptr<CPUTimer> edm::RunDualStopwatches::StopwatchPointer |
Definition at line 45 of file RunStopwatch.h.
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()); } }
Definition at line 60 of file RunStopwatch.h.
Referenced by RunDualStopwatches(), and ~RunDualStopwatches().
CPUTimer* const edm::RunDualStopwatches::stopwatch2_ [private] |
Definition at line 61 of file RunStopwatch.h.
Referenced by RunDualStopwatches(), and ~RunDualStopwatches().