1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef __need_timeval
- # ifndef _BITS_TIME_H
- # define _BITS_TIME_H 1
- # define CLOCKS_PER_SEC 1000000l
- #include <bits/uClibc_clk_tck.h>
- # if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
- # include <bits/types.h>
- # define CLK_TCK ((__clock_t) __UCLIBC_CLK_TCK_CONST)
- # endif
- # ifdef __USE_POSIX199309
- # define CLOCK_REALTIME 0
- # define CLOCK_MONOTONIC 1
- # define CLOCK_PROCESS_CPUTIME_ID 2
- # define CLOCK_THREAD_CPUTIME_ID 3
- # define CLOCK_MONOTONIC_RAW 4
- # define CLOCK_REALTIME_COARSE 5
- # define CLOCK_MONOTONIC_COARSE 6
- # define CLOCK_BOOTTIME 7
- # define CLOCK_REALTIME_ALARM 8
- # define CLOCK_BOOTTIME_ALARM 9
- # define CLOCK_TAI 11
- # 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
|