26 #include "CLAM_windows.h"
60 GetSystemTimeAsFileTime(&ft);
61 const unsigned __int64 TIMESPEC_TO_FILETIME_OFFSET = ((
unsigned __int64)27111902UL << 32) + (
unsigned __int64)3577643008UL;
62 xtp->
sec = (
int)((*( __int64*)&ft - TIMESPEC_TO_FILETIME_OFFSET) / 10000000);
63 xtp->
nsec = (
int)((*( __int64*)&ft - TIMESPEC_TO_FILETIME_OFFSET -
64 (( __int64)xtp->
sec * ( __int64)10000000)) * 100);
70 xtp->
nsec = tv.tv_usec * 1000;
106 ts.tv_sec =
static_cast<int>(xt.
sec);
107 ts.tv_nsec =
static_cast<int>(xt.
nsec);
115 inline void to_time(
int milliseconds, timespec& ts)
138 ts.tv_sec = xt.
sec - cur.
sec;