ORCA-C/ORCACDefs/time.h
2017-10-21 20:21:37 -05:00

55 lines
1.1 KiB
C

/****************************************************************
*
* time.h - time and date functions
*
* February 1989
* Mike Westerfield
*
* Copyright 1989
* Byte Works, Inc.
*
****************************************************************/
#ifndef __time__
#define __time__
typedef unsigned long clock_t;
typedef unsigned long 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;
};
#ifndef __KeepNamespacePure__
#define CLK_TCK 60
#endif
#define CLOCKS_PER_SEC 60
#ifndef NULL
#define NULL (void *) 0L
#endif
#ifndef __size_t__
#define __size_t__ 1
typedef unsigned long size_t;
#endif
char *asctime(const struct tm *);
clock_t clock(void);
char *ctime(const time_t *);
double difftime(time_t, time_t);
struct tm *gmtime(const time_t *);
struct tm *localtime(const time_t *);
time_t mktime(struct tm *);
time_t time(time_t *);
#endif