From: Tim Updegrove Newsgroups: comp.os.msdos.djgpp Subject: uclock failure at midnight Date: Mon, 12 Jun 2000 17:31:46 -0400 Organization: Lucent Technologies Lines: 19 Message-ID: <394556C2.4AB83020@lucent.com> NNTP-Posting-Host: pai830tupdegrove.micro.lucent.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com My program runs 12 seconds but if it tries to run through midnight then it fails because a uclock() value after midnight is less than a uclock() value before midnight. Here are 3 sets of uclock values from this past weekend. 1st read of uclock = 0x00befdef 2nd read of uclock = 0x00be0001 1st read of uclock = 0x0099fc06 2nd read of uclock = 0x00990000 1st read of uclock = 0x00abfe1d 2nd read of uclock = 0x00aaffff (this one is really weird) Is this a uclock problem or something my program somehow needs to take care of? All help is much appreciated. It seems as if the lower 16 bits rollover before the top 16 bits are incremented (except in the 00aaffff case).