<?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: How to get the CPU usage of a process</title>
	<atom:link href="http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/feed/" rel="self" type="application/rss+xml" />
	<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/</link>
	<description>A blog about web development, software business, and WordPress</description>
	<lastBuildDate>Wed, 16 May 2012 17:59:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Jānis Elsts</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-2/#comment-200007</link>
		<dc:creator>Jānis Elsts</dc:creator>
		<pubDate>Fri, 11 May 2012 15:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-200007</guid>
		<description>Hmm, it seems you&#039;re right.</description>
		<content:encoded><![CDATA[<p>Hmm, it seems you&#8217;re right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quark</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-2/#comment-200000</link>
		<dc:creator>quark</dc:creator>
		<pubDate>Fri, 11 May 2012 04:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-200000</guid>
		<description>In the following code:

TotalTime:=int64(mKernelTime.dwLowDateTime or (mKernelTime.dwHighDateTime shr 32));

&#039;shr&#039; should be &#039;shl&#039; ?</description>
		<content:encoded><![CDATA[<p>In the following code:</p>
<p>TotalTime:=int64(mKernelTime.dwLowDateTime or (mKernelTime.dwHighDateTime shr 32));</p>
<p>&#8216;shr&#8217; should be &#8216;shl&#8217; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: müzik dinlesene</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-2/#comment-198166</link>
		<dc:creator>müzik dinlesene</dc:creator>
		<pubDate>Wed, 15 Feb 2012 21:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-198166</guid>
		<description>Now it’s ok!
Thanks.</description>
		<content:encoded><![CDATA[<p>Now it’s ok!<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: türkü dinle</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-2/#comment-172887</link>
		<dc:creator>türkü dinle</dc:creator>
		<pubDate>Sat, 20 Aug 2011 11:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-172887</guid>
		<description>thank yoou admin really nice kode.
by turku</description>
		<content:encoded><![CDATA[<p>thank yoou admin really nice kode.<br />
by turku</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kürtçe müzik dinle</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-1/#comment-171734</link>
		<dc:creator>kürtçe müzik dinle</dc:creator>
		<pubDate>Sun, 24 Jul 2011 11:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-171734</guid>
		<description>big Thx fot this kode..!</description>
		<content:encoded><![CDATA[<p>big Thx fot this kode..!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muzik dinle</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-1/#comment-32887</link>
		<dc:creator>muzik dinle</dc:creator>
		<pubDate>Sat, 12 Dec 2009 14:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-32887</guid>
		<description>thanks so much. its ok now. greetings</description>
		<content:encoded><![CDATA[<p>thanks so much. its ok now. greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-1/#comment-31372</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Sat, 05 Sep 2009 08:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-31372</guid>
		<description>Thangks Very Much!</description>
		<content:encoded><![CDATA[<p>Thangks Very Much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davis</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-1/#comment-31026</link>
		<dc:creator>Davis</dc:creator>
		<pubDate>Sat, 01 Aug 2009 18:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-31026</guid>
		<description>Now it&#039;s ok!
Thanks.</description>
		<content:encoded><![CDATA[<p>Now it&#8217;s ok!<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-1/#comment-31022</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Sat, 01 Aug 2009 15:23:36 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-31022</guid>
		<description>Due to the way the functions work, you need to wait at least a few milliseconds between wsCreateUsageCounter() and the first call to wsGetCpuUsage(). Put a Sleep(100); call in there.</description>
		<content:encoded><![CDATA[<p>Due to the way the functions work, you need to wait at least a few milliseconds between wsCreateUsageCounter() and the first call to wsGetCpuUsage(). Put a Sleep(100); call in there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davis</title>
		<link>http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/comment-page-1/#comment-31021</link>
		<dc:creator>Davis</dc:creator>
		<pubDate>Sat, 01 Aug 2009 14:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/08/27/how-to-get-the-cpu-usage-of-a-process/#comment-31021</guid>
		<description>Hi for all,
  
  The demo works fine for me but in my bellow code don&#039;t works. Where is my error ?
  The result for S var is 0.

procedure TForm1.Update
 var
 p:PCPUUsageData;
 s:single;
 Pid:cardinal;

begin
  s := 0;
  pid := 984;  //pid of a process with more than 0 percent of usage


   p:=wsCreateUsageCounter(pid);
   s:=wsGetCpuUsage(P);

   Memo1.Lines.Add(floattostr(s));

   wsDestroyUsageCounter(P);

end;




Thanks.</description>
		<content:encoded><![CDATA[<p>Hi for all,</p>
<p>  The demo works fine for me but in my bellow code don&#8217;t works. Where is my error ?<br />
  The result for S var is 0.</p>
<p>procedure TForm1.Update<br />
 var<br />
 p:PCPUUsageData;<br />
 s:single;<br />
 Pid:cardinal;</p>
<p>begin<br />
  s := 0;<br />
  pid := 984;  //pid of a process with more than 0 percent of usage</p>
<p>   p:=wsCreateUsageCounter(pid);<br />
   s:=wsGetCpuUsage(P);</p>
<p>   Memo1.Lines.Add(floattostr(s));</p>
<p>   wsDestroyUsageCounter(P);</p>
<p>end;</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

