2 #ifndef TIMERFORSEQUENCER_H
4 #include "GaudiKernel/MsgStream.h"
5 #include "GaudiKernel/Timing.h"
21 const unsigned int size,
52 inline const std::string&
name()
const {
return m_name; }
73 static std::string
header( std::string::size_type size );
97 #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
double count() const
Returns the number run count.
double lastCpu() const
returns the last measured time
void start()
Start a time measurement.
double stop()
Stop time measurement and return the last elapsed time.
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 total cpu time
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.
TimerForSequencer(const std::string &name, const unsigned int size, const double factor)
Constructor.