00001 #include <sys/times.h> 00002 #include <unistd.h> 00003 float uxtime_() 00004 { 00005 struct tms q; 00006 long t,s; 00007 long sysconf(); 00008 long ticks; 00009 float uxtime; 00010 00011 00012 ticks = sysconf(_SC_CLK_TCK); 00013 times(&q); 00014 t = q.tms_utime + q.tms_cutime 00015 +q.tms_stime + q.tms_cstime; 00016 return (float) t/ (float) ticks; 00017 }