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 <m...@memo.tv> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to