<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Units of mach_absolute_time()</title>
	<atom:link href="http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/</link>
	<description>Shifty shifty shifty. Shifty.</description>
	<lastBuildDate>Fri, 24 Feb 2012 04:07:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: orion</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-695</link>
		<dc:creator>orion</dc:creator>
		<pubDate>Sat, 23 Apr 2011 21:50:01 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-695</guid>
		<description>great post, thank you.
i was noticing that something i was animating based on CACurrentMediaTime was subtly jerky and staccato, so i replaced CACurrentMediaTime with a wrapper around mach_absolute_time and it&#039;s much better.  this is iPad + raw openGL. my guess is that altho CACurrentMediaTime is a double, it actually only has millisecond accuracy, which then bumps into aliasing on the 60Hz render timer.</description>
		<content:encoded><![CDATA[<p>great post, thank you.<br />
i was noticing that something i was animating based on CACurrentMediaTime was subtly jerky and staccato, so i replaced CACurrentMediaTime with a wrapper around mach_absolute_time and it&#8217;s much better.  this is iPad + raw openGL. my guess is that altho CACurrentMediaTime is a double, it actually only has millisecond accuracy, which then bumps into aliasing on the 60Hz render timer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-229</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Sun, 19 Apr 2009 05:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-229</guid>
		<description>I just checked on my G4 PowerBook running 10.5 - its exactly 30 nanoseconds per tick. So its never been guaranteed to be 1:1.

Win32 has a similar function &quot;QueryPerformanceFrequency()&quot;. Even different Intel/AMD systems have different frequencies, depending on BIOS settings of the various motherboard manufactures. More information here:
http://msdn.microsoft.com/en-us/library/bb173458.aspx

So unless your code is guaranteed to be only running on your own personal mac, please use mach_timebase_info() - that&#039;s what its for :-)</description>
		<content:encoded><![CDATA[<p>I just checked on my G4 PowerBook running 10.5 &#8211; its exactly 30 nanoseconds per tick. So its never been guaranteed to be 1:1.</p>
<p>Win32 has a similar function &#8220;QueryPerformanceFrequency()&#8221;. Even different Intel/AMD systems have different frequencies, depending on BIOS settings of the various motherboard manufactures. More information here:<br />
<a href="http://msdn.microsoft.com/en-us/library/bb173458.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb173458.aspx</a></p>
<p>So unless your code is guaranteed to be only running on your own personal mac, please use mach_timebase_info() &#8211; that&#8217;s what its for :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julia</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-227</link>
		<dc:creator>Julia</dc:creator>
		<pubDate>Sun, 12 Apr 2009 01:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-227</guid>
		<description>mach/mach_time.h</description>
		<content:encoded><![CDATA[<p>mach/mach_time.h</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julia</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-226</link>
		<dc:creator>Julia</dc:creator>
		<pubDate>Sun, 12 Apr 2009 01:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-226</guid>
		<description>Great information!  Thanks!

And don&#039;t forget to:

#include </description>
		<content:encoded><![CDATA[<p>Great information!  Thanks!</p>
<p>And don&#8217;t forget to:</p>
<p>#include</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devin Lane</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-225</link>
		<dc:creator>Devin Lane</dc:creator>
		<pubDate>Fri, 27 Mar 2009 00:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-225</guid>
		<description>A good suggestion. While the values are documented to be 1:1 on Mac OS X on all systems up until now, and this will likely continue into the future, code that needs more portability may benefit from using mach_timebase_info as you suggest.</description>
		<content:encoded><![CDATA[<p>A good suggestion. While the values are documented to be 1:1 on Mac OS X on all systems up until now, and this will likely continue into the future, code that needs more portability may benefit from using mach_timebase_info as you suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-224</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Sat, 28 Feb 2009 11:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-224</guid>
		<description>I believe you should always use the values in mach_timebase_info, because they could be different from system to system depending on the host CPU and bus, even just on Mac OS X.</description>
		<content:encoded><![CDATA[<p>I believe you should always use the values in mach_timebase_info, because they could be different from system to system depending on the host CPU and bus, even just on Mac OS X.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-216</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Sun, 19 Oct 2008 02:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-216</guid>
		<description>Thanks!  No telling how many hours you just saved me.</description>
		<content:encoded><![CDATA[<p>Thanks!  No telling how many hours you just saved me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Towner</title>
		<link>http://shiftedbits.org/2008/10/01/mach_absolute_time-on-the-iphone/comment-page-1/#comment-215</link>
		<dc:creator>Jesse Towner</dc:creator>
		<pubDate>Sat, 11 Oct 2008 22:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://shiftedbits.org/?p=17#comment-215</guid>
		<description>Thanks for the information.</description>
		<content:encoded><![CDATA[<p>Thanks for the information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.194 seconds -->

