repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vm: fix a null dereference on out-of-memory
[minix.git]
/
lib
/
libc
/
gen
/
minix
/
clock.c
blob
efe45102e76ed79757b23b9345f21d7300bade57
1
/*
2
* clock - determine the processor time used
3
*/
4
#include <sys/cdefs.h>
5
#include
"namespace.h"
6
7
#include <time.h>
8
#include <sys/times.h>
9
10
clock_t
clock
(
void
)
11
{
12
struct
tms tms
;
13
14
times
(&
tms
);
15
return
tms
.
tms_utime
;
16
}