minix/lib/ansi/clock.c
2009-11-09 10:26:00 +00:00

15 lines
195 B
C

/*
* clock - determine the processor time used
*/
#define times _times
#include <time.h>
#include <sys/times.h>
clock_t clock(void)
{
struct tms tms;
times(&tms);
return tms.tms_utime;
}