Project
Loading...
Searching...
No Matches
o2::hmpid::ExecutionTimer Class Reference

HMPID Derived class for the Time of Workflows. More...

#include <Common.h>

Public Member Functions

 ExecutionTimer ()
 
 ~ExecutionTimer ()=default
 
Double_t getElapseLogTime ()
 
void setElapseLogTime (Double_t interval)
 
void start ()
 start : starts the timer
 
void stop ()
 stop : stops the timer
 
void logMes (std::string const message)
 
void elapseMes (std::string const message)
 

Detailed Description

HMPID Derived class for the Time of Workflows.

Definition at line 33 of file Common.h.

Constructor & Destructor Documentation

◆ ExecutionTimer()

o2::hmpid::ExecutionTimer::ExecutionTimer ( )
inline

Definition at line 42 of file Common.h.

◆ ~ExecutionTimer()

o2::hmpid::ExecutionTimer::~ExecutionTimer ( )
default

Member Function Documentation

◆ elapseMes()

void o2::hmpid::ExecutionTimer::elapseMes ( std::string const  message)
inline

elapseMes : Out a message on the LOG(info) with extra execution time info is the set interval was reached

Parameters
[in]message: the message to print

Definition at line 91 of file Common.h.

◆ getElapseLogTime()

Double_t o2::hmpid::ExecutionTimer::getElapseLogTime ( )
inline

getElapseLogTime : returns the seconds for the elapsed log message

Returns
: the number of seconds for the elapsed logging

Definition at line 53 of file Common.h.

◆ logMes()

void o2::hmpid::ExecutionTimer::logMes ( std::string const  message)
inline

logMes : Out a message on the LOG(info) with extra execution time info

Parameters
[in]message: the message to print

Definition at line 81 of file Common.h.

◆ setElapseLogTime()

void o2::hmpid::ExecutionTimer::setElapseLogTime ( Double_t  interval)
inline

setElapseLogTime : set the interval for the elapsed logging

Parameters
[in]interval: the seconds of interval for elapsed logging

Definition at line 57 of file Common.h.

◆ start()

void o2::hmpid::ExecutionTimer::start ( )
inline

start : starts the timer

Definition at line 64 of file Common.h.

◆ stop()

void o2::hmpid::ExecutionTimer::stop ( )
inline

stop : stops the timer

Definition at line 73 of file Common.h.


The documentation for this class was generated from the following file: