Xref: utzoo comp.sys.mac.hypercard:1329 comp.sys.mac.programmer:3438
Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!lsr
From: lsr@Apple.COM (Larry Rosenstein)
Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer
Subject: Re: Reaction Time stacks : can I do this?
Message-ID: <294@internal.Apple.COM>
Date: 7 Dec 88 02:44:04 GMT
References: <6012@mva.cs.liv.ac.uk> <21792@apple.Apple.COM>
Organization: Advanced Technology Group, Apple Computer
Lines: 19

In article <21792@apple.Apple.COM> dan@Apple.COM (Dan Allen) writes:
>In article <6012@mva.cs.liv.ac.uk> phil@mva.cs.liv.ac.uk writes:
>>1) is it possible to write an XCMD/XFCN to await a keypress and to time
>>more accurately than 1/60th of a second, and return this info to a script.
>
>Yes, an XCMD can measure event timing to finer intervals.  You would
>need to write some tricky code to use one of the VIA internal
>millisecond timers.

It is easier to use the Time Manager that to hack with the hardware
directly.  With the Time Manager you can have an interrupt routine called
every milisecond.  The routine can simply increment a counter to provide a
more accurate time base.

-- 
		 Larry Rosenstein,  Object Specialist
 Apple Computer, Inc.  20525 Mariani Ave, MS 46-B  Cupertino, CA 95014
	    AppleLink:Rosenstein1    domain:lsr@Apple.COM
		UUCP:{sun,voder,nsc,decwrl}!apple!lsr