minix/lib/ansi/clock.c

16 lines
195 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/*
* 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;
}