time.h

来自「s1mp3 sdk, action mp3 develop tool kit!」· C头文件 代码 · 共 73 行

H
73
字号
/* *      Small C+ Library * *      time.h - Time related functions * *      djm 9/1/2000 * *	$Id: time.h,v 1.8 2003/06/20 15:26:04 dom Exp $ */#ifndef __TIME_H__#define __TIME_H__#include <sys/types.h>#ifdef __SPECTRUM__#define CLOCKS_PER_SEC 50#endif#ifdef __SAM__#define CLOCKS_PER_SEC 50#endif#ifdef __ZX81__#define CLOCKS_PER_SEC 50#endif#ifdef __Z88__#define CLOCKS_PER_SEC 100#endifextern time_t __LIB__ time(time_t *);struct 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;};/* * These routines fill in the structure above using the value * supplied in t (usu obtained from time() * * These two really do the same since the z88 has no concept  * of timezones */extern struct tm __LIB__ *gmtime(time_t *t);extern struct tm __LIB__ *localtime(time_t *t);extern time_t __LIB__ mktime(struct tm *tp);/* This is a really simple fn which will barf over midnight,.. */#ifndef FAKECLOCKextern clock_t __LIB__ clock(void);#endif#endif /* _TIME_H */

⌨️ 快捷键说明

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