minix3/lib/libc/gen/clock.c

17 lines
220 B
C
Raw Normal View History

2020-02-21 00:59:27 +05:30
/*
* clock - determine the processor time used
*/
#include <sys/cdefs.h>
#include "namespace.h"
#include <time.h>
#include <sys/times.h>
clock_t clock(void)
{
struct tms tms;
times(&tms);
return tms.tms_utime;
}