🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #250

Timing problem with QB 4.5

#250
From: Lahti Jani
Date: Fri, 13 Nov 1992 14:57
17 lines
1257 bytes
Is there any way I can get my program to wait, say, 1.2 seconds? QB 4.5 has a
command SLEEP, that pauses for n seconds, but I need something more accurate.

With SOUND command I could generate intervals with 1/18 sec accuracy, but that
has a nasty side effect: beep from the speaker. If only could I set the
frequency low enough, the beep wouldn't be generated (my 4DOS has this
advantage (freq<20Hz)), but no: QB stops with error when frequency is set 
under 37 Hz.

So, what I'd want is a mean of generating pauses at least with 1/10 sec
accuracy, preferably 1/100 (but even 1/18 is OK) with my QB 4.5. Or do I
have to change my compiler to something more 'state-of-the-art' one?
-- 
_____________________________________________________________________________
Internet: l137939@cc.tut.fi      Jani Lahti              Fidonet: 2:222/352.3
--------------- for Pretty Good Privacy(tm), use your finger ----------------
Technical Details
Message-ID: <1992Nov13.145717.26940@cc.tut.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!news.cc.tut.fi!l137939

Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.basic
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!news.cc.tut.fi!l137939
From: l137939@cc.tut.fi (Lahti Jani)
Subject: Timing problem with QB 4.5
Message-ID: <1992Nov13.145717.26940@cc.tut.fi>
Organization: Tampere University of Technology, Finland
Date: Fri, 13 Nov 92 14:57:17 GMT
Lines: 16