20 double duration(timeval &tstart, timeval &tend)
22 long sec = tend.tv_sec - tstart.tv_sec;
23 long usec = tend.tv_usec - tstart.tv_usec;
24 double tdiff = sec + usec/1.0E+6;
53 if(_save) lastTime = curTime;
54 if(_echo) printf(
"Time from last %.6f s\n", tdiff);
58 double stop(
bool _echo =
true)
64 if(_echo) printf(
"Time from start %.6f s\n", tdiff);
Timer & operator=(const Timer &)
double splittime(bool _save, bool _echo=true)
static Timer & GetTimer()
double stop(bool _echo=true)
double duration(timeval &tstart, timeval &tend)
static double tdiff(const art::Timestamp &ts1, const art::Timestamp &ts2)
int gettimeofday(struct timeval *, struct timezone *)