1 #ifndef WIRECELLUTIL_EXECMON 2 #define WIRECELLUTIL_EXECMON 25 TimeKeeper::ptime starting_time = boost::posix_time::microsec_clock::local_time());
void msg(const char *fmt,...)
std::string operator()(std::string msg="<tick>", TimeKeeper::ptime now=boost::posix_time::microsec_clock::local_time(), MemUsage::memusage mu=MemUsage::memusage(-1,-1))
Record an event.
boost::posix_time::ptime ptime
std::pair< double, double > memusage
ExecMon(const std::string &msg="start", TimeKeeper::ptime starting_time=boost::posix_time::microsec_clock::local_time())
std::string summary() const
Return summary up to now.