35 if(!(tv_sec < 0.0) && !(tv_usec < 0.0)) {
37 const uint32_t usec =
static_cast<uint32_t
>(tv_usec);
42 <<
"ctor error! sec=" << sec <<
", " << tv_sec;
46 <<
"ctor error! usec=" << usec <<
", " << tv_usec;
80 int secs =
getSec() - start_time.getSec();
84 int usecs =
getMicroSec() - start_time.getMicroSec();
86 return static_cast<double>(secs)*1000.0 +
static_cast<double>(usecs)/1000.0;
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
uint32_t getMicroSec() const
double getElapsed(const TrigMonTimer &start) const