1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef _SYS_TIME_H #define _SYS_TIME_H #ifdef __cplusplus extern "C" { #endif struct timeval { long tv_sec; long tv_usec; }; typedef struct timestruc { time_t tv_sec; long tv_nsec; } timestruc_t; #ifdef __cplusplus } #endif #endif /* _SYS_TIME_H */