?? util_clockstuff.c
字號:
#ifdef HAVE_CONFIG_H#include "config.h"#endif#include "clockstuff.h"DWORD units_per_tick = 0;DOUBLE ppm_per_adjust_unit = 0.0; /* to satisfy libntp */intgettimeofday( struct timeval *tv ){ /* Use the system time (roughly synchronised to the tick, and * extrapolated using the system performance counter. */ FILETIME StartTime; ULONGLONG Time; GetSystemTimeAsFileTime(&StartTime); Time = (((ULONGLONG) StartTime.dwHighDateTime) << 32) + (ULONGLONG) StartTime.dwLowDateTime; /* Convert the hecto-nano second time to tv format */ Time -= FILETIME_1970; tv->tv_sec = (LONG) ( Time / 10000000ui64); tv->tv_usec = (LONG) (( Time % 10000000ui64) / 10); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -