time.h

来自「标准c库代码,可以应用于各个系统提供了大量的基本函数」· C头文件 代码 · 共 68 行

H
68
字号
/* * time.h *  * Struct and function declarations for dealing with time. */#ifndef _TIME_H_#ifdef __cplusplusextern "C" {#endif#define _TIME_H_#include "_ansi.h"#ifndef NULL#define	NULL	0L#endif#define CLOCKS_PER_SEC 1000		/* Machine dependent */#define __need_size_t#include <stddef.h>/* Get _CLOCK_T_ and _TIME_T_.  */#include <machine/types.h>#ifndef __clock_t_definedtypedef _CLOCK_T_ clock_t;#define __clock_t_defined#endif#ifndef __time_t_definedtypedef _TIME_T_ time_t;#define __time_t_defined#endifstruct tm{  int	tm_sec;  int	tm_min;  int	tm_hour;  int	tm_mday;  int	tm_mon;  int	tm_year;  int	tm_wday;  int	tm_yday;  int	tm_isdst;};clock_t	   _EXFUN(clock,    (void));double	   _EXFUN(difftime, (time_t _time2, time_t _time1));time_t	   _EXFUN(mktime,   (struct tm *_timeptr));time_t	   _EXFUN(time,     (time_t *_timer));#ifndef _REENT_ONLYchar	  *_EXFUN(asctime,  (const struct tm *_tblock));#endifchar	  *_EXFUN(ctime,    (const time_t *_time));struct tm *_EXFUN(gmtime,   (const time_t *_timer));struct tm *_EXFUN(localtime,(const time_t *_timer));size_t	   _EXFUN(strftime, (char *_s, size_t _maxsize, const char *_fmt, const struct tm *_t));char	  *_EXFUN(_asctime_r, (const struct tm *_tblock, void *_p));#ifdef __cplusplus}#endif#endif /* _TIME_H_ */

⌨️ 快捷键说明

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