1 #ifndef TIMERFORSEQUENCER_H 87 #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.
GAUDI_API longlong cpuTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Consumed CPU time of process in milliseconds.
constexpr auto size(const C &c) noexcept(noexcept(c.size())) -> decltype(c.size())
TimerForSequencer(std::string name, unsigned int size, double factor)
Constructor.
MsgStream & operator<<(MsgStream &ms, const TimerForSequencer &count)
double lastTime() const
returns the last measured time
GAUDI_API longlong currentTime()
Retrieve absolute system 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
uint64_t count() const
Returns the number run count.