1*4887Schinset prototyped 2*4887Schinlib nanosleep,usleep,_strftime 3*4887Schintyp clock_t = uint32_t 4*4887Schintyp time_t = uint32_t 5*4887Schin 6*4887Schinif sys time { 7*4887Schin #include <sys/time.h> 8*4887Schin} 9*4887Schinendif 10*4887Schin 11*4887Schinif ! mem tm.tm_sec sys/time.h 12*4887Schin if hdr time { 13*4887Schin #include <time.h> 14*4887Schin } 15*4887Schin endif 16*4887Schinendif 17*4887Schin 18*4887Schinif sys times { 19*4887Schin #include <sys/times.h> 20*4887Schin} 21*4887Schinelse { 22*4887Schin struct tms 23*4887Schin { 24*4887Schin clock_t tms_utime; 25*4887Schin clock_t tms_stime; 26*4887Schin clock_t tms_cutime; 27*4887Schin clock_t tms_cstime; 28*4887Schin }; 29*4887Schin extern clock_t times(struct tms*); 30*4887Schin} 31*4887Schinendif 32*4887Schin 33*4887Schinif ! mem timeval.tv_sec sys/time.h { 34*4887Schin struct timeval 35*4887Schin { 36*4887Schin time_t tv_sec; 37*4887Schin time_t tv_usec; 38*4887Schin }; 39*4887Schin} 40*4887Schinendif 41*4887Schin 42*4887Schincat{ 43*4887Schin#ifndef CLOCKS_PER_SEC 44*4887Schin#define CLOCKS_PER_SEC CLK_TCK 45*4887Schin#endif 46*4887Schin}end 47