<?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: Resolution Problems in clock()</title>
	<atom:link href="http://www.guyrutenberg.com/2007/09/10/resolution-problems-in-clock/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guyrutenberg.com/2007/09/10/resolution-problems-in-clock/</link>
	<description>Keeping track of what I do</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:33:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: loopzy</title>
		<link>http://www.guyrutenberg.com/2007/09/10/resolution-problems-in-clock/comment-page-1/#comment-25853</link>
		<dc:creator>loopzy</dc:creator>
		<pubDate>Thu, 03 Dec 2009 15:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/09/10/resolution-problems-in-clock/#comment-25853</guid>
		<description>Thanks! I will recommend this to all my friends.</description>
		<content:encoded><![CDATA[<p>Thanks! I will recommend this to all my friends.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indy</title>
		<link>http://www.guyrutenberg.com/2007/09/10/resolution-problems-in-clock/comment-page-1/#comment-180</link>
		<dc:creator>indy</dc:creator>
		<pubDate>Mon, 01 Oct 2007 12:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/09/10/resolution-problems-in-clock/#comment-180</guid>
		<description>The performance of clock() can be even worse, with some people reporting 50ms, try this example:

		double freq[ITERATIONS];

		for (int i = 0; i (freq, ITERATIONS);
		double min_freq = Min(freq, ITERATIONS);
		double max_freq = Max(freq, ITERATIONS);

printf(&quot;\n\n avg_freq = %.5f\n min_freq = %.5f\n max_freq = %.5f &quot;, avg_freq, min_freq, max_freq);

on athlon XP 1.7GHz its:

 avg_freq = 0.01011
 min_freq = 0.01000
 max_freq = 0.10000

100ms : ) in the worst case</description>
		<content:encoded><![CDATA[<p>The performance of clock() can be even worse, with some people reporting 50ms, try this example:</p>
<p>		double freq[ITERATIONS];</p>
<p>		for (int i = 0; i (freq, ITERATIONS);<br />
		double min_freq = Min(freq, ITERATIONS);<br />
		double max_freq = Max(freq, ITERATIONS);</p>
<p>printf(&#8220;\n\n avg_freq = %.5f\n min_freq = %.5f\n max_freq = %.5f &#8220;, avg_freq, min_freq, max_freq);</p>
<p>on athlon XP 1.7GHz its:</p>
<p> avg_freq = 0.01011<br />
 min_freq = 0.01000<br />
 max_freq = 0.10000</p>
<p>100ms : ) in the worst case</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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

