vm: fix a null dereference on out-of-memory
[minix.git] / lib / libc / gen / minix / clock.c
blobefe45102e76ed79757b23b9345f21d7300bade57
1 /*
2 * clock - determine the processor time used
3 */
4 #include <sys/cdefs.h>
5 #include "namespace.h"
7 #include <time.h>
8 #include <sys/times.h>
10 clock_t clock(void)
12 struct tms tms;
14 times(&tms);
15 return tms.tms_utime;