CMS 3D CMS Logo

TimingServiceBase.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_TimingServiceBase_h
2 #define FWCore_Utilities_TimingServiceBase_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Utilities
6 // Class : TimingServiceBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Wed, 11 Jun 2014 14:50:33 GMT
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 namespace edm {
29  public:
31  virtual ~TimingServiceBase();
32 
33  // ---------- member functions ---------------------------
37  virtual void addToCPUTime(double iTime) = 0;
38 
41  virtual double getTotalCPU() const = 0;
42 
43  static void jobStarted();
44 
45  static double jobStartTime() { return s_jobStartTime; }
46 
47  private:
48  TimingServiceBase(const TimingServiceBase&) = delete; // stop default
49 
50  const TimingServiceBase& operator=(const TimingServiceBase&) = delete; // stop default
51 
52  static double s_jobStartTime;
53  };
54 } // namespace edm
55 
56 #endif
edm::TimingServiceBase::addToCPUTime
virtual void addToCPUTime(double iTime)=0
edm::TimingServiceBase::operator=
const TimingServiceBase & operator=(const TimingServiceBase &)=delete
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::TimingServiceBase::jobStartTime
static double jobStartTime()
Definition: TimingServiceBase.h:45
edm::TimingServiceBase::s_jobStartTime
static double s_jobStartTime
Definition: TimingServiceBase.h:52
edm::TimingServiceBase::jobStarted
static void jobStarted()
Definition: TimingServiceBase.cc:26
edm::TimingServiceBase::getTotalCPU
virtual double getTotalCPU() const =0
edm::TimingServiceBase::~TimingServiceBase
virtual ~TimingServiceBase()
Definition: TimingServiceBase.cc:41
edm::TimingServiceBase::TimingServiceBase
TimingServiceBase()
Definition: TimingServiceBase.cc:39
edm::TimingServiceBase
Definition: TimingServiceBase.h:28
StreamID.h