#include <sys/times.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
float | uxtime_ () |
float uxtime_ | ( | ) |
Definition at line 3 of file uxtime_.c.
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 }