<?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"
	>
<channel>
	<title>Comments on: The Stopwatch Class in .NET</title>
	<atom:link href="http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/</link>
	<description>Software by Design</description>
	<pubDate>Fri, 04 Jul 2008 03:15:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Randolpho</title>
		<link>http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/#comment-1762</link>
		<dc:creator>Randolpho</dc:creator>
		<pubDate>Thu, 17 Jan 2008 23:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/#comment-1762</guid>
		<description>This has been around for 3 years now, and I've never known about it. Thanks!</description>
		<content:encoded><![CDATA[<p>This has been around for 3 years now, and I&#8217;ve never known about it. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Prouse</title>
		<link>http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/#comment-1758</link>
		<dc:creator>Robert Prouse</dc:creator>
		<pubDate>Tue, 15 Jan 2008 15:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/#comment-1758</guid>
		<description>Thanks for the comment. I didn't know about the static method.

I do a similar thing by deriving from the Stopwatch and logging the elapsed time in the Dispose. I was going to blog about that next, but I guess you beat me to it ;)</description>
		<content:encoded><![CDATA[<p>Thanks for the comment. I didn&#8217;t know about the static method.</p>
<p>I do a similar thing by deriving from the Stopwatch and logging the elapsed time in the Dispose. I was going to blog about that next, but I guess you beat me to it <img src='http://www.alteridem.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon von Gillern</title>
		<link>http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/#comment-1757</link>
		<dc:creator>Jon von Gillern</dc:creator>
		<pubDate>Tue, 15 Jan 2008 15:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2008/01/14/the-stopwatch-class-in-net/#comment-1757</guid>
		<description>You can actually make this even shorter. There is a static method on the Stopwatch class called StartNew() that returns an instance that has been started for you.

ex.

Stopwatch myStopwatch = Stopwatch.StartNew();

DoStuff()

myStopwatch.Stop();
Console.WriteLine("Do Stuff took {0} ms", myStopwatch.ElapsedMilliseconds);


I've got a class called a StopwatchWriter that simplifies everything if you're profiling multiple parts of the same method as well.

http://www.vonsharp.net/StopwatchWriterClass.aspx</description>
		<content:encoded><![CDATA[<p>You can actually make this even shorter. There is a static method on the Stopwatch class called StartNew() that returns an instance that has been started for you.</p>
<p>ex.</p>
<p>Stopwatch myStopwatch = Stopwatch.StartNew();</p>
<p>DoStuff()</p>
<p>myStopwatch.Stop();<br />
Console.WriteLine(&#8221;Do Stuff took {0} ms&#8221;, myStopwatch.ElapsedMilliseconds);</p>
<p>I&#8217;ve got a class called a StopwatchWriter that simplifies everything if you&#8217;re profiling multiple parts of the same method as well.</p>
<p><a href="http://www.vonsharp.net/StopwatchWriterClass.aspx" rel="nofollow">http://www.vonsharp.net/StopwatchWriterClass.aspx</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
