gbdk-releases/gbdk-lib/include/time.h
2015-01-10 16:25:09 +01:00

29 lines
561 B
C

/** @file time.h
Sort of ANSI compliant time functions.
*/
#ifndef TIME_INCLUDE
#define TIME_INCLUDE
#include <types.h>
#if SDCC_PLAT==consolez80
#define CLOCKS_PER_SEC 100
#else
/** For now... */
#error
#define CLOCKS_PER_SEC 50
#endif
typedef UINT16 time_t;
/** The clock() function returns an approximation of processor time
used by the program. The value returned is the CPU time used so far
as a clock_t; to get the number of seconds used, divide by
CLOCKS_PER_SEC.
*/
clock_t clock(void) NONBANKED;
time_t time(time_t *t);
#endif