27 void start(
const char* title = NULL);
28 double info(
const char* title, std::ostream& os,
bool add_nl =
true);
40 ULARGE_INTEGER ularge1, ularge2;
41 ularge1.LowPart = start.dwLowDateTime;
42 ularge1.HighPart = start.dwHighDateTime;
43 ularge2.LowPart = finish.dwLowDateTime;
44 ularge2.HighPart= finish.dwHighDateTime;
45 if (ularge2.QuadPart > ularge1.QuadPart)
47 return ularge2.QuadPart - ularge1.QuadPart;
51 return -
static_cast<LONGLONG
>(ularge1.QuadPart - ularge2.QuadPart);
70 m_ts.fromEpochTime(time(NULL));
94 double tdiff3 =
m_ts.elapsed() / 1.0e6;
95 os <<
"TIMING (" <<
m_title <<
"," << title <<
"): elasped(" << tdiff3 <<
LONGLONG diffFileTimes(const FILETIME &start, const FILETIME &finish)
finish - start, returned in 100ns units
double diffFileTimesInMilliSec(const FILETIME &start, const FILETIME &finish)
finish - start in milliseconds
double info(const char *title, std::ostream &os, bool add_nl=true)
void start(const char *title=NULL)
timings_t m_process_times