NetBSD/sys/arch/sun3/stand/libsa/clock.c

24 lines
328 B
C

/* $NetBSD: clock.c,v 1.3 1998/01/05 07:03:23 perry Exp $ */
#include <sys/types.h>
#include <machine/mon.h>
#include "clock.h"
int hz = 1000;
time_t getsecs()
{
register int ticks = getticks();
return ((time_t)(ticks / hz));
}
int getticks()
{
register int ticks;
ticks = *romVectorPtr->nmiClock;
return (ticks);
}