31 #define snprintf _snprintf 45 SystemTimeToFileTime(&st, &ft);
47 li.LowPart = ft.dwLowDateTime;
48 li.HighPart = ft.dwHighDateTime;
52 uint64_t total_usecs = (li.QuadPart - 116444736000000000L) / 10L;
53 return (total_usecs / 1000000.);
56 gettimeofday(&cur, NULL);
57 return cur.tv_sec + cur.tv_usec / 1000000.;
64 int msec = floor(tm * 1000);
70 int usec = (tm - sec) * 1000000;