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
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libsys
/
getticks.c
blob
af0b11dad3e0930d4527caf19893c11bba5d3dab
1
#include
"sysutil.h"
2
3
/*
4
* Return the number of clock ticks since system boot. Note that the value may
5
* wrap on overflow.
6
*/
7
clock_t
8
getticks
(
void
)
9
{
10
11
/* We assume atomic 32-bit field retrieval. TODO: 64-bit support. */
12
return
get_minix_kerninfo
()->
kclockinfo
->
uptime
;
13
}