1 /* $NetBSD: clock.c,v 1.1 2001/06/14 12:57:14 fredette Exp $ */ 2 3 4 #include <sys/types.h> 5 #include <machine/mon.h> 6 7 #include "libsa.h" 8 9 int hz = 1000; 10 11 long 12 getsecs() 13 { 14 long ticks; 15 16 ticks = getticks(); 17 return ((ticks / hz)); 18 } 19 20 long 21 getticks() 22 { 23 long ticks; 24 25 ticks = *romVectorPtr->nmiClock; 26 return (ticks); 27 } 28