[comp.os.msdos.programmer] timerset & timer not allowing date to change?

umcarls9@ccu.umanitoba.ca (Charles Carlson) (05/16/91)

I have the following loop in C

long t21;

t21=timerset(20);
while(!timeup(t21))
 {

  code

  }

If this loop is being excuted just as the clock goes from 23:59:59 to 00:00:00
the date doesn't change for some reason!  
Is there any reason why the date wouldn't change?  It changes on a friend's
286 machine, but not on my 386sx, DOS 3.3<noTSRs> AMI BIOS.  If I use
a for loop for the delay, the time changes properly.

Until I can find out why it doesn't change, the only solution I can think of
is to read the CMOS clock and reset the date after the loop exists.

Charles