#include <Timer.h>
Definition at line 14 of file Timer.h.
Timer::Timer |
( |
const Timer & |
| ) |
|
|
private |
double Timer::duration |
( |
timeval & |
tstart, |
|
|
timeval & |
tend |
|
) |
| |
|
inlineprivate |
Definition at line 20 of file Timer.h.
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;
static double tdiff(const art::Timestamp &ts1, const art::Timestamp &ts2)
static Timer& Timer::GetTimer |
( |
| ) |
|
|
inlinestatic |
double Timer::splittime |
( |
bool |
_save, |
|
|
bool |
_echo = true |
|
) |
| |
|
inline |
Definition at line 47 of file Timer.h.
54 if(_echo) printf(
"Time from last %.6f s\n", tdiff);
double duration(timeval &tstart, timeval &tend)
static double tdiff(const art::Timestamp &ts1, const art::Timestamp &ts2)
int gettimeofday(struct timeval *, struct timezone *)
Definition at line 41 of file Timer.h.
int gettimeofday(struct timeval *, struct timezone *)
double Timer::stop |
( |
bool |
_echo = true | ) |
|
|
inline |
Definition at line 58 of file Timer.h.
64 if(_echo) printf(
"Time from start %.6f s\n", tdiff);
double duration(timeval &tstart, timeval &tend)
static double tdiff(const art::Timestamp &ts1, const art::Timestamp &ts2)
int gettimeofday(struct timeval *, struct timezone *)
The documentation for this class was generated from the following file:
- duneprototypes/duneprototypes/3x1x1dp/DataImport/Services/Timer.h