42 if (!m_started)
return;
51 if (tv.tv_sec >= m_startTime.tv_sec) {
52 secs = tv.tv_sec - m_startTime.tv_sec;
54 secs = tv.tv_sec - m_startTime.tv_sec +
SecsInDay;
56 usecs = tv.tv_usec - m_startTime.tv_usec;
57 mtime =
static_cast<float>(secs)*1000. +
static_cast<float>(usecs)/1000.;
65 double denom =
static_cast <double> (++m_numberOfMeasurements);
66 double d = m_elapsed -
m_mean;
68 double dd = m_elapsed*m_elapsed - m_ms;
72 m_meanVal +=
static_cast <double> (m_propVal - m_meanVal) / denom;
74 double timePerObject = m_elapsed/
static_cast <double>(m_propVal);
75 m_meanTimePerObject +=
static_cast <double> (timePerObject - m_meanTimePerObject) /
76 static_cast<double> (++m_NmeanTimePerObject);