Mail Archives: djgpp-workers/2002/06/10/00:18:14
I did some investigation of uclock() ...
On my Win95 box it doesn't work either - the timer seems to stay on
rate generator (so it's not continuous); there are jumps in the time.
On Win2K; from the start of a timer tic in the bios area to the end of
that tic I see the timer registers cycle through the msb values 280
times (more than one full cycle of the 256 allowable values). The
Win2K timer is running on a different frequency to provide a nice
even 20 cycles per second (or it seems) - it then virtualizes the
DOS timer tick, but doesn't bother with with timer registers - just
lets us see the native values?
In quick summary, I don't see any way to fix this on Win2K, and it
doesn't seem to be reliable on either Win95 box I tested either.
Document as only reliable under DOS?
- Raw text -