Authors
Publication
Pub Details
Date
Pages
BASIC Terms
In revising programs or comparing technique I often use the system variable FRAMES to measure elapsed time.
Near the start of the program temporarily insert:
POKE 23672,0:POKE 23673,0
That will reset the counters to 0. They will advance one unit per 1/60.1145 second.
Near the end of the program, insert:
PRINT PEEK 23762+256*PEEK 23673
For direct comparisons just note the number of units for each trial. If it is desired to measure directly in seconds, use:
PRNT INT((PEEK 23672+256*PEEK23673 + .5)*100/60.1145+.5)/100
This provides averaging, since the counter jumps in 16ms steps while the elapse time is continuous. Then the result is rounded to two decimal places. It should be accurate to about .01 second.