repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Expand PMF_FN_* macros.
[netbsd-mini2440.git]
/
sys
/
arch
/
sun68k
/
stand
/
libsa
/
clock.c
blob
3cbad94a73d095e82ab450a8ca8c7a48fd39d587
1
/* $NetBSD: clock.c,v 1.3 2005/12/11 12:19:29 christos Exp $ */
2
3
4
#include <sys/types.h>
5
#include <machine/mon.h>
6
7
#include
"libsa.h"
8
#include
"net.h"
9
10
int
hz
=
1000
;
11
12
satime_t
13
getsecs
(
void
)
14
{
15
long
ticks
;
16
17
ticks
=
getticks
();
18
return
((
ticks
/
hz
));
19
}
20
21
long
22
getticks
(
void
)
23
{
24
long
ticks
;
25
26
ticks
= *
romVectorPtr
->
nmiClock
;
27
return
(
ticks
);
28
}