<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8980734269859237005.post1822445438682815894..comments</id><updated>2009-08-31T00:52:11.008-07:00</updated><category term='Reviews'/><category term='LINQ'/><category term='Visual Studio'/><category term='Windows Vista'/><category term='Misc Ramblings'/><category term='jQuery'/><category term='Architecture'/><category term='Technology'/><category term='CSS'/><category term='Screencast'/><category term='VB.NET'/><category term='Free EBook'/><category term='Tips'/><category term='Azure'/><category term='ASP.NET MVC'/><category term='ASP.NET'/><category term='HTML 5'/><category term='C#'/><category term='Free Learning'/><category term='Regex'/><category term='Product Releases'/><category term='Link List'/><category term='ASP.NET AJAX'/><category term='General'/><category term='WCF'/><category term='Blogging Tools'/><category term='Sharepoint'/><category term='Tools'/><category term='Contests'/><category term='Entity FW'/><category term='JavaScript'/><category term='WPF'/><category term='.NET'/><category term='Silverlight'/><category term='Windows 7'/><title type='text'>Comments on DevCurry: Calculate the Seconds, Milliseconds and Microsecon...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.devcurry.com/feeds/1822445438682815894/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default'/><link rel='alternate' type='text/html' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html'/><author><name>Suprotim Agarwal</name><uri>http://www.blogger.com/profile/08349831623922214390</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_0j4bzarlOBg/TEefNfVYJBI/AAAAAAAABOE/GoGXFIVogfU/S220/Supmvp.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8980734269859237005.post-6076991226342311774</id><published>2009-08-31T00:52:11.008-07:00</published><updated>2009-08-31T00:52:11.008-07:00</updated><title type='text'>Thanks Kevin, Erik and Markus. That was quite info...</title><summary type='text'>Thanks Kevin, Erik and Markus. That was quite informative. The updates have been made to the original post for the benefit of future users and webdevs like me!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/6076991226342311774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/6076991226342311774'/><link rel='alternate' type='text/html' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html?showComment=1251705131008#c6076991226342311774' title=''/><author><name>Suprotim Agarwal</name><uri>http://www.blogger.com/profile/08349831623922214390</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html' ref='tag:blogger.com,1999:blog-8980734269859237005.post-1822445438682815894' source='http://www.blogger.com/feeds/8980734269859237005/posts/default/1822445438682815894' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-185591272'/></entry><entry><id>tag:blogger.com,1999:blog-8980734269859237005.post-6198789094357734231</id><published>2009-08-30T12:06:43.822-07:00</published><updated>2009-08-30T12:06:43.822-07:00</updated><title type='text'>First; I totally agree with Kevin that this is a m...</title><summary type='text'>First; I totally agree with Kevin that this is a messy way of calculating the elapsed time between two DateTimes.&lt;br /&gt;&lt;br /&gt;And second. Eric hinted that using DateTime.Now for timing sure is bad. Although the limitation does not lie within the TimeSpan struct, but with the underlying implementation of DateTime.Now. For timing you should use the Stopwatch class in System.Diagnostics. See &lt;a href=</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/6198789094357734231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/6198789094357734231'/><link rel='alternate' type='text/html' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html?showComment=1251659203822#c6198789094357734231' title=''/><author><name>Markus Olsson</name><uri>http://www.blogger.com/profile/04294756312801923101</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html' ref='tag:blogger.com,1999:blog-8980734269859237005.post-1822445438682815894' source='http://www.blogger.com/feeds/8980734269859237005/posts/default/1822445438682815894' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-253107438'/></entry><entry><id>tag:blogger.com,1999:blog-8980734269859237005.post-1297585280482069396</id><published>2009-08-29T18:58:50.703-07:00</published><updated>2009-08-29T18:58:50.703-07:00</updated><title type='text'>The problem with this is that TimeSpan only has a ...</title><summary type='text'>The problem with this is that TimeSpan only has a resolution of 100ms on an NT4 or better system - which means you can&amp;#39;t rely on it being accurate for anything less than that amount, give or take. If you really need accurate timing at those levels, you need the high performance timer APIs or multimedia timer APIs.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/1297585280482069396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/1297585280482069396'/><link rel='alternate' type='text/html' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html?showComment=1251597530703#c1297585280482069396' title=''/><author><name>Erik</name><uri>http://www.blogger.com/profile/00113019952074669440</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_HYFHJRS8qEE/SY0NgANPh2I/AAAAAAAAAiE/QP_FmyjK6wE/s1600-R/fa1f3c0dc0e80a85a5c12437ea03ea4a.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html' ref='tag:blogger.com,1999:blog-8980734269859237005.post-1822445438682815894' source='http://www.blogger.com/feeds/8980734269859237005/posts/default/1822445438682815894' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-50064754'/></entry><entry><id>tag:blogger.com,1999:blog-8980734269859237005.post-1665639850001966074</id><published>2009-08-29T10:30:08.093-07:00</published><updated>2009-08-29T10:30:08.093-07:00</updated><title type='text'>The DateTime type implements an operator for subtr...</title><summary type='text'>The DateTime type implements an operator for subtraction that returns a TimeSpan object.  This would be my suggestion:&lt;br /&gt;&lt;br /&gt;//-----------&lt;br /&gt;DateTime start = DateTime.Now;&lt;br /&gt;Thread.Sleep(10);&lt;br /&gt;DateTime end = DateTime.Now;&lt;br /&gt;TimeSpan span = end - start;&lt;br /&gt;            Console.WriteLine(&amp;quot;Ticks: &amp;quot; + span.Ticks);&lt;br /&gt;//-----------&lt;br /&gt;&lt;br /&gt;From there, you can access </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/1665639850001966074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/1822445438682815894/comments/default/1665639850001966074'/><link rel='alternate' type='text/html' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html?showComment=1251567008093#c1665639850001966074' title=''/><author><name>Kevin</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.devcurry.com/2009/08/calculate-seconds-milliseconds-and.html' ref='tag:blogger.com,1999:blog-8980734269859237005.post-1822445438682815894' source='http://www.blogger.com/feeds/8980734269859237005/posts/default/1822445438682815894' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1627176224'/></entry></feed>
