Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxf.cso.uiuc.edu!rmf517 From: rmf517@uxf.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Re: mac programming question Message-ID: <1234600023@uxf.cso.uiuc.edu> Date: 19 Apr 89 17:06:00 GMT Lines: 16 Nf-ID: #R: > ... measure the time interval between a the appearance of a display on the > > screen and when the viewer presses a key. This time interval must be > > measured > > within 1/100th of a second. > > Take a look at the Toolbox Event manager in Inside Macintosh. The > event record that is returned includes a field, 'when', that tells > when the event happened in 60ths of a second since the computer was > turned on. Keypresses are returned as events. Take a look at the Time Manager Routines in IM IV. It sounds like you could have a function called every 1/100 of a sec. and check for a KeyDown. Then you could get better resoultion then 60th of a sec. Bob Frank - struggling undergrad @ the UofI