40 void clockTimeImpl::getTime(
struct timeval& t)
42 gettimeofday(&t, NULL);
46 double clockTimeImpl::timeDifference
48 const struct timeval& start,
49 const struct timeval& end
52 return end.tv_sec - start.tv_sec + 1
E-6*(end.tv_usec - start.tv_usec);
61 lastTime_ = startTime_;
62 newTime_ = startTime_;
71 return timeDifference(startTime_, newTime_);
79 return timeDifference(lastTime_, newTime_);