33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/ofstd/ofcast.h" 42 #define INCLUDE_CSTDDEF 43 #include "dcmtk/ofstd/ofstdinc.h" 88 inline static double getDiff(
double start)
100 return OFstatic_cast(
double, GetTickCount()) / 1000;
103 gettimeofday(&c_time, NULL);
104 return OFstatic_cast(
double, c_time.tv_sec) + OFstatic_cast(
double, c_time.tv_usec) / 1000000;
double getDiff() const
get elapsed time.
void reset()
reset start time
A class for measurement of time.
static double getTime()
get current time
static double getDiff(double start)
get difference between current time and specified time
double Start
reference/start time