12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef __need_timeval
- # ifndef _BITS_TIME_H
- # define _BITS_TIME_H 1
- # define CLOCKS_PER_SEC 1000000l
- # if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
- # include <bits/types.h>
- extern long int __sysconf (int);
- # define CLK_TCK ((__clock_t) __sysconf (2))
- # endif
- # ifdef __USE_POSIX199309
- # define CLOCK_REALTIME 0
- # define CLOCK_PROCESS_CPUTIME_ID 2
- # define CLOCK_THREAD_CPUTIME_ID 3
- # define TIMER_ABSTIME 1
- # endif
- # endif
- #endif
- #ifdef __need_timeval
- # undef __need_timeval
- # ifndef _STRUCT_TIMEVAL
- # define _STRUCT_TIMEVAL 1
- # include <bits/types.h>
- struct timeval
- {
- __time_t tv_sec;
- __suseconds_t tv_usec;
- };
- # endif
- #endif
|