{"id":166,"date":"2013-10-23T21:28:31","date_gmt":"2013-10-23T19:28:31","guid":{"rendered":"http:\/\/blog.matthias.roehser.de\/?p=166"},"modified":"2014-07-05T15:51:26","modified_gmt":"2014-07-05T13:51:26","slug":"measuring-execution-times-in-net","status":"publish","type":"post","link":"https:\/\/blog.matthias.roehser.de\/?p=166","title":{"rendered":"Measuring execution times in .NET"},"content":{"rendered":"<p>C#<\/p>\n<pre>var watch = Stopwatch.StartNew();\r\n\/\/ the code that you want to measure comes here\r\nwatch.Stop();\r\nvar elapsedMs = watch.ElapsedMilliseconds;<\/pre>\n<p>Taken from: http:\/\/stackoverflow.com\/questions\/14019510\/calculate-the-execution-time-of-a-method<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C# var watch = Stopwatch.StartNew(); \/\/ the code that you want to measure comes here watch.Stop(); var elapsedMs = watch.ElapsedMilliseconds; Taken from: http:\/\/stackoverflow.com\/questions\/14019510\/calculate-the-execution-time-of-a-method<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166"}],"version-history":[{"count":3,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}