Re: Re: capturing user reaction times in msecs
Re: Re: capturing user reaction times in msecs
- Subject: Re: Re: capturing user reaction times in msecs
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 19 Dec 2006 09:20:18 -0800
On 12/19/06, julia Cline <email@hidden> wrote:
For my purposes, I think that close enough is good enough--especially if the error margin is constant. (That is, if every time the display becomes visible the system takes the same amount of time to get it onscreen). I'm asking a much, much lower level question. What code do I use? I am unable to find a simple function or Class that returns the time to the msec. For example, I can find a "possible token in the Calendar Format String" that will specify msecs (%F), but I have no idea how to use it.
Consider the following ...
UInt64 startTime = UnsignedWideToUInt64(AbsoluteToNanoseconds(UpTime()));
... do your thing...
UInt64 endTime = UnsignedWideToUInt64(AbsoluteToNanoseconds(UpTime()));
UInt64 elapsedTime = (endTime - startTime); // elapsed time in nanoseconds
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden