- static int64_t epoch=0;
- if(!epoch)
- {
- SYSTEMTIME st;
- st.wYear=1970;
- st.wMonth=1;
- st.wDay=1;
- st.wHour=0;
- st.wMinute=0;
- st.wSecond=0;
- st.wMilliseconds=0;
-
- FILETIME ft;
- SystemTimeToFileTime(&st, &ft);
- epoch=(ft.dwLowDateTime+((int64_t)ft.dwHighDateTime<<32))/10;
- }
-