Re: Timing of UI events
Re: Timing of UI events
- Subject: Re: Timing of UI events
- From: Matt Neuburg <email@hidden>
- Date: Mon, 13 Sep 2010 12:36:42 -0700
- Thread-topic: Timing of UI events
On Mon, 13 Sep 2010 11:56:51 -0400, Andrew Coad <email@hidden>
said:
>I can see that UIEvent has a timestamp of type NSInterval which has
sub-millisecond resolution. Should I use this? What is the relationship between
this timestamp and mach_absolute_time()? Any better ways to do this?
The timestamp is the time when the event occurred. mach_absolute_time(), or
CACurrentMediaTime(), is the time now.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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