22 bool numIsFirst = ( 1ULL ==
m_num );
23 m_min += lastTime * numIsFirst;
24 m_max += lastTime * numIsFirst;
40 if ( 0ULL !=
m_num ) {
58 min, max, sigma,
m_num, sum * 0.001f );
63 return "Algorithm" +
std::string(
std::max( std::string::size_type( 21 ), size ) - 20,
' ' ) +
64 "(millisec) | <user> | <clock> |" +
" 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.
constexpr auto size(const C &c) noexcept(noexcept(c.size())) -> decltype(c.size())
double lastTime() const
returns the last measured time
GAUDI_API longlong currentTime()
Retrieve absolute system time.