🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ont.micro.mac
Article #309

Event timers

#309
From: info-mac
Date: Fri, 29 Jun 1984 07:39
27 lines
1652 bytes
	(4.14/4.20) id AA24855; Tue, 26 Jun 84 20:49:40 pdt
	(4.14/4.20) id AA21415; Tue, 26 Jun 84 20:49:50 pdt
Date: Tue, 26 Jun 84 20:49:50 pdt
From: uw-beaver!preese%ucblapis.CC@Berkeley
To: info-mac@sumex-aim.ARPA
Subject: Event timers

I have a need to find the time between the occurrence of two
events on the Mac i.e. I need to know the time between
presenting something on the screen and when the user responds.
Additionally, I'm currently doing this from MS-BASIC.  MS-BASIC
has the command for the number of seconds past midnight but my
events are likely to be more on the order of fraction of
seconds.  Anybody know of any PEEK locations for a counter
that counts faster then once a second?

The usual way to do this is to loop in a tight loop until
there is a keypress or other interruption.  I'm worried that
this won't work on the Mac because updating the screen will
steal some time from the loop time (suppose the mouse gets
bumped and the cursor has to be redrawn in the new location).
Dose anybody know if this timing loop technique is unreliable
due to this reason?

Thanks,
Phil Reese
preese%ucblapis.CC@Berkeley.ARPA
Technical Details
Message-ID: <4665@utcsrgv.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcsrgv!info-mac

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utcsrgv.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcsrgv!info-mac
From: info-mac@utcsrgv.UUCP (info-mac)
Newsgroups: ont.micro.mac
Subject: Event timers
Message-ID: <4665@utcsrgv.UUCP>
Date: Fri, 29-Jun-84 03:39:47 EDT
Article-I.D.: utcsrgv.4665
Posted: Fri Jun 29 03:39:47 1984
Date-Received: Sat, 30-Jun-84 02:31:47 EDT
Sender: peterr@utcsrgv.UUCP
Organization: CSRI, University of Toronto
Lines: 29