clockstuff.h

来自「基于ntp协议的网络时间服务程序」· C头文件 代码 · 共 38 行

H
38
字号
#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/* * Multimedia Timer */void set_mm_timer(int);enum {	MM_TIMER_LORES,	MM_TIMER_HIRES};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?