40 lines
629 B
Plaintext
40 lines
629 B
Plaintext
set prototyped
|
|
hdr,sys time,times
|
|
mem tm.tm_sec,timeval.tv_sec sys/time.h
|
|
typ clock_t,time_t
|
|
cat{
|
|
#if !_typ_clock_t
|
|
#define _typ_clock_t 1
|
|
typedef unsigned long clock_t;
|
|
#endif
|
|
#if !_typ_time_t
|
|
#define _typ_time_t 1
|
|
typedef unsigned long time_t;
|
|
#endif
|
|
#if _sys_time
|
|
#include <sys/time.h>
|
|
#endif
|
|
#if _hdr_time && !_mem_tm_sec_tm
|
|
#include <time.h>
|
|
#endif
|
|
#if _sys_times
|
|
#include <sys/times.h>
|
|
#else
|
|
struct tms
|
|
{
|
|
clock_t tms_utime;
|
|
clock_t tms_stime;
|
|
clock_t tms_cutime;
|
|
clock_t tms_cstime;
|
|
};
|
|
extern clock_t times(struct tms*);
|
|
#endif
|
|
#if !_mem_tv_sec_timeval
|
|
struct timeval
|
|
{
|
|
time_t tv_sec;
|
|
time_t tv_usec;
|
|
};
|
|
#endif
|
|
}end
|