Date: Sun, 27 Apr 1997 11:52:06 +0300 (IDT) From: Eli Zaretskii To: Michael Mauch cc: djgpp AT delorie DOT com Subject: Re: testing uclock() In-Reply-To: <336208f2.110883@news.uni-duisburg.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.