Article ID: 20551
Article Last Modified on 10/20/2003
Loop: Newtime=TIMER
IF Newtime < Oldtime THEN GOSUB Ouch
Oldtime=Newtime
GOTO Loop
Ouch: BEEP
PRINT "Newtime",Newtime,"Oldtime",Oldtime
PRINT "Timer",TIMER
RETURN
To duplicate the problem, run this program for ten minutes. The
subroutine should print only when the TIMER wraps around from the
highest value back to zero, but instead, it prints every one to five
minutes when TIMER mistakenly returns a number that is one less than
the previous value of TIMER. The problem is in the Macintosh ROM
routine Readdatetime that is called by TIMER. The problem may have to
do with a software/hardware clock updating idiosyncrasy in
Readdatetime.
Additional query words: MQuickB
Keywords: KB20551