22 fSum[0] += (
fT[2]-
fT[1]).total_microseconds();
23 fSum[1] += (
fT[1]-
fT[3]).total_microseconds();
28 usleep(std::max(maxwait-(
int)(
fT[2]-
fT[3]).total_microseconds(), 1));
32 const int diff = (
fT[2]-
fT[0]).total_milliseconds();
Adds some functionality to boost::posix_time::ptime for our needs.
static pthread_cond_t cond