• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Timing of UI events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Is kCAOnOrderOut too good to be true?
  • Next by Date: Testing Harness, or a/b testing scenario, and sending logs back to developer
  • Previous by thread: Timing of UI events
  • Next by thread: Re: Is kCAOnOrderOut too good to be true?
  • Index(es):
    • Date
    • Thread