🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Lahti Jani Fri, 13 Nov 1992 14:57
Timing problem with QB 4.5
#250
Author: 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 ----------------
Re: Timing problem with QB 4.5
#310
Author: ICJPS
Date: Tue, 17 Nov 1992 19:17
2 lines
518 bytes
Try the TIMER function.  Returns a real, good to 2 decimals.  The fractional
portion is the 1/18ths part.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads