21 bool numIsFirst= (1ULL ==
m_num) ;
22 m_min += lastTime * numIsFirst;
23 m_max += lastTime * numIsFirst;
39 if ( 0ULL !=
m_num ) {
54 float sigma =
m_num <= 1ULL
59 <<
format(
"| %9.3f | %9.3f | %8.3f %9.1f %8.2f | %7d | %9.3f |",
60 cpu, ave, min, max, sigma,
m_num, sum * 0.001f );
66 +
"(millisec) | <user> | <clock> |" 67 +
" min max sigma | entries | total (s) |";
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
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
double sum(double x, double y, double z)
uint64_t stop()
Stop time measurement and return the last elapsed time.
unsigned long long uint64_t
GAUDI_API longlong cpuTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Consumed CPU time of process in milliseconds.
double lastTime() const
returns the last measured time
GAUDI_API longlong currentTime()
Retrieve absolute system time.