1 #ifndef TIMERFORSEQUENCER_H
3 #include "GaudiKernel/MsgStream.h"
4 #include "GaudiKernel/Timing.h"
48 inline const std::string&
name()
const {
return m_name; }
69 static std::string
header( std::string::size_type size );
94 #endif // TIMERFORSEQUENCER_H
Definition of the MsgStream class used to transmit messages.
MsgStream & fillStream(MsgStream &s) const
Write measured time into the message stream.
static std::string header(std::string::size_type size)
header matching the previous format
uint64_t stop()
Stop time measurement and return the last elapsed time.
unsigned long long uint64_t
double lastCpu() const
returns the last measured time
void start()
Start a time measurement.
TimerForSequencer(std::string name, unsigned int size, double factor)
Constructor.
GAUDI_API longlong currentTime(TimeType typ=milliSec)
Retrieve absolute system time.
MsgStream & operator<<(MsgStream &ms, const TimerForSequencer &count)
double lastTime() const
returns the last measured time
double elapsedTotal() const
returns the total elapsed time
double cpuTotal() const
returns the toptal cpu time
~TimerForSequencer()=default
const std::string & name() const
returns the name
GAUDI_API longlong cpuTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Consumed CPU time of process in milliseconds.
uint64_t count() const
Returns the number run count.