delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/12/17:45:27

From: Tim Updegrove <tupdegrove AT lucent DOT com>
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
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).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019