title: Why is my ElapsedMilliseconds always zero here?
body: <p>So I'm trying to measure the performance of the hash set I created versus the performance of the same elements in a <code>List</code> and in the following block of code</p>
  
  <pre><code>        Stopwatch Watch = new Stopwatch();
          long tList = 0, tHset = 0; // ms
          foreach ( string Str in Copy )
          {
              // measure time to look up string in ordinary list
              Watch.Start();
              if ( ListVersion.Contains(Str) ) { }
              Watch.Stop();
              tList += Watch.ElapsedMilliseconds;
              // now measure time to look up same string in my hash set
              Watch.Reset();
              Watch.Start();
              if ( this.Contains(Str) ) { }
              Watch.Stop();
              tHset += Watch.ElapsedMilliseconds;
              Watch.Reset();
          }
          int n = Copy.Count;
          Console.WriteLine("Average milliseconds to look up in List: {0}", tList / n);
          Console.WriteLine("Average milliseconds to look up in hashset: {0}", tHset / n);
  </code></pre>
  
  <p>it is outputing <code>0</code> for both. Any idea why this is? Relevant documentation: <a href="https://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch(v=vs.110).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch(v=vs.110).aspx</a> </p>