BBS: Inland Empire Archive Date: 06-22-92 (14:12) Number: 1265 From: MIKE KRUPPENBACHER Refer#: NONE To: DEREK LYONS Recvd: NO Subj: Re: Sleep Conf: (2) Quik_Bas
DL> BG|Does anyone have a goon routine to replace SLEEP ?? without using DL> BG|timer? I have a couple of workarounds but nothing ver streamlined. DL> BG|If you do have something could you share it? Thanks. DL> How are you going to sleep for a specified period of time without DL> using TIMER? DL> Near as I can see you would have to use CALL INTERUPPT to acess the DL> hardware clock directly... Do it the old fashioned way of course.. time out 10,000 loops on your computer and then 5000 and then 2500, you now know approximately how many loops is one second, and can do without sleep etc.. Also, you can check clock speed and re-calibrate if you want to get real fancy.. (ie, built in data says "this is a 33 mhz machine", from there, if you go to a 10 mhz machine you reduce the number of loops..) -Drask Darkstorm --- EZPoint V2.1 * Origin: Adventurers MultiNet (214)240-2216 (1:124/5118.5203)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET