minix/lib/ansi/clock.c
2005-04-21 14:53:53 +00:00

15 lines
195 B
C
Executable file

/*
* 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;
}