
This patch mainly copies and modifies files existing in the current libc implementing minix specific functions. To keep consisten with the NetBSD libc, we remove namespace stubs and we use "namespace.h" and weak links.
17 lines
220 B
C
17 lines
220 B
C
/*
|
|
* 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;
|
|
}
|