<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>.NET Framework</anon>
    <anon>.NET</anon>
    <anon>.NET Core</anon>
  </categories>
  <description>ある特定の区間の実行時間を測定したい事があると思います。 その場合、一般的にはStopwatch（System.Diagnostics名前空間内）を使って以下コードを記述していると思います。 // 典型的な時間計測のコード public static void Main(string[] args) { // 千回実行して合計時間を取る var sw = new Stopwatch(); for (int i = 0; i &lt; 10000; i++) { sw.Start(); // 計測したい処理 Foo(); sw.Stop(); } Trace.WriteLine($&quot;実行時間は {sw…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2019%2F03%2F05%2F230952&quot; title=&quot;C#でStopwatchを使った時間計測を1行でできるようにする - PG日誌&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20181019/20181019004124.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-05 23:09:52</published>
  <title>C#でStopwatchを使った時間計測を1行でできるようにする</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2019/03/05/230952</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
