Mail Archives: djgpp/1997/04/27/04:56:12
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 -