| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Applesoft limitation |
mojoehand wrote: > Speaking of how fast or slow any of these methods would be, there > doesn't seem to be any easy way to time such differences in Applesoft. > I saw an old discussion about this on CSA2 when I was reading the > archives, but didn't see any easy solution. I'm not too fond of the > stopwatch method of timing software. Since there is no real-time timing capability in a stock Apple II, the "stopwatch method" is the most common. (Yes, there are some esoteric methods for the //e for times under 16ms., but that probably doesn't apply to your problem.) And a watch works amazingly well. You just set up a loop or workload that you are willing to consider "typical" that takes between 10 and 100 seconds to execute, then time it with a watch (stopwatch not needed ;-). Sometimes it's handy to start with a keypress and stop with a "beep". If your timing uncertainty is within 0.5 seconds, and the loop takes about 30 seconds, then you've just measured the time to better than 2% accuracy--and, believe me, if you aren't talking differences of more than 2%, there's no point in timing! ;-) If you have dozens of loops to time, it can get a little old, but that's what programmers do. ;-) Seriously, for a few timings, it's quite sufficient. -michael ******** Note new website URL ******** NadaNet and AppleCrate II for Apple II parallel computing! Home page: http://home.comcast.net/~mjmahon/ "The wastebasket is our most important design tool--and it's seriously underused." --- SBBSecho 2.12-Win32* Origin: Derby City Gateway (1:2320/0) SEEN-BY: 10/1 3 34/999 120/228 123/500 140/1 222/2 226/0 236/150 249/303 SEEN-BY: 250/306 261/20 38 100 1404 1406 1410 1418 266/1413 280/1027 320/119 SEEN-BY: 393/11 396/45 633/260 267 712/848 800/432 801/161 189 2222/700 SEEN-BY: 2320/100 105 200 2905/0 @PATH: 2320/0 100 261/38 633/260 267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.