clockstuff.h
来自「一个开源的NTP服务器客户端实现代码」· C头文件 代码 · 共 27 行
H
27 行
#ifndef _CLOCKSTUFF_H#define _CLOCKSTUFF_H#include "ntp_machine.h"#include <time.h>#include <sys\timeb.h>#include "ntp_syslog.h"/* Windows NT versions of gettimeofday and settimeofday * * ftime() has internal DayLightSavings related BUGS * therefore switched to GetSystemTimeAsFileTime() */void init_winnt_time(void);void shutdown_winnt_time(void);void reset_winnt_time(void);/* 100ns intervals between 1/1/1601 and 1/1/1970 as reported by * SystemTimeToFileTime() */#define FILETIME_1970 0x019db1ded53e8000#define HECTONANOSECONDS 10000000ui64#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?