18#ifndef DETECTORS_HMPID_BASE_INCLUDE_HMPIDBASE_COMMON_H_
19#define DETECTORS_HMPID_BASE_INCLUDE_HMPIDBASE_COMMON_H_
21#include <TStopwatch.h>
38 Double_t mLastLogTime;
39 Double_t mElapseLogTime;
59 mElapseLogTime = interval;
66 mStartTime = mTimer.CpuTime();
67 mLastLogTime = mStartTime;
83 LOG(info) <<
message <<
" Execution time = " << (mTimer.CpuTime() - mStartTime);
93 if (mTimer.CpuTime() - mLastLogTime > mElapseLogTime) {
94 LOG(info) <<
message <<
" Execution time = " << (mTimer.CpuTime() - mStartTime);
95 mLastLogTime = mTimer.CpuTime();
HMPID Derived class for the Time of Workflows.
void stop()
stop : stops the timer
void elapseMes(std::string const message)
Double_t getElapseLogTime()
void start()
start : starts the timer
void setElapseLogTime(Double_t interval)
void logMes(std::string const message)
~ExecutionTimer()=default
GLuint GLsizei const GLchar * message
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"