1 /* 2 * clock - determine the processor time used 3 */ 4 #include <sys/cdefs.h> 5 #include "namespace.h" 6 7 #include <time.h> 8 #include <sys/times.h> 9 clock(void)10 clock_t clock(void) 11 { 12 struct tms tms; 13 14 times(&tms); 15 return tms.tms_utime; 16 } 17