Go to the documentation of this file.
11 #ifndef TIMERFORSEQUENCER_H
15 # include <inttypes.h>
93 #endif // TIMERFORSEQUENCER_H
const std::string & name() const
returns the name
double lastCpu() const
returns the last measured time
constexpr auto size(const T &, Args &&...) noexcept
double cpuTotal() const
returns the toptal cpu time
MsgStream & operator<<(MsgStream &ms, const TimerForSequencer &count)
double elapsedTotal() const
returns the total elapsed time
uint64_t stop()
Stop time measurement and return the last elapsed time.
TimerForSequencer(std::string name, unsigned int size, double factor)
Constructor.
void start()
Start a time measurement.
GAUDI_API long long currentTime()
Retrieve absolute system time.
~TimerForSequencer()=default
GAUDI_API long long cpuTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Consumed CPU time of process in milliseconds.
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 lastTime() const
returns the last measured time
uint64_t count() const
Returns the number run count.