Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 1995 22:34:49 +0200 (SAT)
From:      John Hay <jhay@mikom.csir.co.za>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        freebsd-current@FreeBSD.ORG (FreeBSD-current)
Subject:   Re: Time problems
Message-ID:  <199511062034.WAA14154@zibbi.mikom.csir.co.za>
In-Reply-To: <199511062022.HAA30357@godzilla.zeta.org.au> from "Bruce Evans" at Nov 7, 95 07:22:11 am

next in thread | previous in thread | raw e-mail | index | archive | help
> >> > >I ran your program with the pentium timer disabled and regularly got
> >> > >negative numbers. The numbers vary, but things that I got was -6, -38,
> >> > >-44, -17, etc...
> >> > 
> >> > You would need similar delays in microtime() for the non-pentium version
> >> > to work.  Try adding such delays (`inb $0x84, %al' immediately after the
> >> > outb).
> >> I tried a few combinations up to two inb's after the outb and after the first
> >> inb, but I still get negative numbers. I also tried Garrett's program and
> >> apart from it coredumping sometimes the min value is always a negative number
> >> -99 and worse.
> 
> Is this with xntpd or similar slewing the clock?  I would expect only
> large errors of 10000 usec if the heuristic for handling counter overflow
> doesn't work.
> 
No I booted in single user mode, so nothing else was running.

John
-- 
John Hay -- John.Hay@csir.co.za



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511062034.WAA14154>