• 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: best way to do precise timing on iphone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best way to do precise timing on iphone?


  • Subject: Re: best way to do precise timing on iphone?
  • From: Memo Akten <email@hidden>
  • Date: Thu, 5 Feb 2009 12:25:16 +0000

Thanks, I just couldn't find the framework for AbsoluteToNanoseconds(), but found the code below which seems to work fine.
http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/


thx bout the devforums btw...


On 5 Feb 2009, at 12:14, Phil wrote:

On Fri, Feb 6, 2009 at 1:06 AM, Memo Akten <email@hidden> wrote:
Hi ALl, i'm aware that on desktop using mach_absolute_time() is the way to
go for precise timing of code
(http://developer.apple.com/qa/qa2004/qa1398.html) but I was wondering what
is the alternative for iphone? not sure if this is the right place to post,
but I"d gladly repost if someone could point me to the right place. I'm
guessing NSDate isn't going to be that accurate for this kind of stuff...

You can use mach_absolute_time() on the iPhone.

Future questions about iPhone development should be directed to the
developer forums though:
<https://devforums.apple.com/>

Phil

_______________________________________________

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


References: 
 >best way to do precise timing on iphone? (From: Memo Akten <email@hidden>)
 >Re: best way to do precise timing on iphone? (From: Phil <email@hidden>)

  • Prev by Date: Re: best way to do precise timing on iphone?
  • Next by Date: System Activity shortly after booting
  • Previous by thread: Re: best way to do precise timing on iphone?
  • Next by thread: System Activity shortly after booting
  • Index(es):
    • Date
    • Thread