CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TimerService.h
Go to the documentation of this file.
1 #ifndef Timer_Service_
2 #define Timer_Service_
3 
13 #include "sigc++/signal.h"
14 
16 
21 
22 #include <string>
23 
24 class TimerService {
25  public:
26  explicit TimerService(const edm::ParameterSet&,
28  ~TimerService();
29  // signal with module-description and processing time (in secs)
30  sigc::signal<void, const edm::ModuleDescription&, double> newMeasurementSignal;
31 
32  // fwk calls this method before a module is processed
33  void preModule(const edm::ModuleDescription& iMod);
34  // fwk calls this method after a module has been processed
35  void postModule(const edm::ModuleDescription& iMod);
36 
37  private:
38  // cpu-timer
39  static edm::CPUTimer * cpu_timer; // Chris J's CPUTimer
40  // whether to use CPU-time (default) or wall-clock time
41  bool useCPUtime;
42 
43 };
44 
45 #endif // #define Timer_Service_
void postModule(const edm::ModuleDescription &iMod)
Definition: TimerService.cc:48
void preModule(const edm::ModuleDescription &iMod)
Definition: TimerService.cc:41
TimerService(const edm::ParameterSet &, edm::ActivityRegistry &iAR)
Definition: TimerService.cc:6
static edm::CPUTimer * cpu_timer
Definition: TimerService.h:39
sigc::signal< void, const edm::ModuleDescription &, double > newMeasurementSignal
Definition: TimerService.h:30