typedef struct { time_t tv_sec; long tv_nsec; } timespec;