Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!wingo@apple.com From: wingo@apple.com (Anthony Wingo) Newsgroups: comp.sys.mac.programmer Subject: Re: TicksCount Message-ID: <14021@goofy.Apple.COM> Date: 12 Jun 91 01:20:05 GMT References: <5721@hemuli.tik.vtt.fi> <1991Jun11.092513.14329@cs.uri.edu> Sender: usenet@Apple.COM Organization: Apple Computer Lines: 25 In article <1991Jun11.092513.14329@cs.uri.edu>, reynhout@cs.uri.edu (Andrew Reynhout) writes: > > In article <5721@hemuli.tik.vtt.fi> aku@tik.vtt.fi (Arto Kujala) writes: > >Is there a way to get more accurate time than function TickCount > >gives? > > > >1/100 sec precision would be appropriate. > > Unfortunately, you'd need discrete hardware to do this. The Mac gets its > clock signals from the 60Hz AC input. Of course, it would be very *simple* > hardware...perhaps there is something out there. > > Hmm. In europe, where the freq of the AC is 50Hz, does TickCount() have a > 1/50sec resolution? > -- > > > Actually, the 60Hz tick is divided down from the crystal. And it isn't 60Hz either, it is 60.15 Hz, which can be a nuisence if your using it for timing. (See IM III-18 and V-566). Use the Time Manager (IM IV-297) for more accurate counting. - Tony Wingo