21 bool numIsFirst = ( 1ULL ==
m_num );
22 m_min += lastTime * numIsFirst;
23 m_max += lastTime * numIsFirst;
38 if ( 0ULL !=
m_num ) {
56 <<
format(
"| %9.3f | %9.3f | %8.3f %9.1f %8.2f | %7d | %9.3f |", cpu, ave, min, max, sigma,
m_num,
61 return "Algorithm" +
std::string(
std::max( std::string::size_type( 21 ), size ) - 20,
' ' ) +
62 "(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.
EventIDBase min(const EventIDBase &lhs, const EventIDBase &rhs)
unsigned long long uint64_t
EventIDBase max(const EventIDBase &lhs, const EventIDBase &rhs)
constexpr auto size(const C &c) noexcept(noexcept(c.size())) -> decltype(c.size())
GAUDI_API long long currentTime()
Retrieve absolute system time.
double lastTime() const
returns the last measured time
GAUDI_API long long cpuTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Consumed CPU time of process in milliseconds.