delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/27/04:56:12

Date: Sun, 27 Apr 1997 11:52:06 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michael Mauch <mauch AT uni-duisburg DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: testing uclock()
In-Reply-To: <336208f2.110883@news.uni-duisburg.de>
Message-ID: <Pine.SUN.3.91.970427115144.17804G-100000@is>
MIME-Version: 1.0

On Sat, 26 Apr 1997, Michael Mauch wrote:

> Then the program works like it should - on plain MS-DOS 7 in virtual x86
> mode. The first call to uclock() returns 0 and the other values are
> always from 4 to 7 on my Pentium 75. 
> 
> However in a DOS window of Win95, I also get negative values sometimes
> (i.e. not in each run, and only one of the hundred numbers).

That's because `uclock' reprograms the system timer chip, and
Windows 95 has a nasty habit of resetting it to the default mode
every now and then.  When the timer works in its default mode,
you get negative values.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019