title: How to measure the time for LINQ Query?
body: <p>I tried to use the stopwatch before the linq query and stop it after the LINQ query but the time the linq query takes 2 minutes but the stopwtach result gives 40 MS !!</p>
  
  <p>this is the LINQ Query </p>
  
  <pre><code>Stopwatch stopwatch = Stopwatch.StartNew();
    var sets =
     from a in patient
     from b in patient
     from c in patient
     from d in patient
     from l in patient
     where a.VisitNum &lt; b.VisitNum &amp;&amp; b.VisitNum &lt; c.VisitNum &amp;&amp; c.VisitNum &lt; d.VisitNum &amp;&amp; d.VisitNum &lt; l.VisitNum
     select new { a, b, c, d, l };
                  stopwatch.Stop();
  </code></pre>
  
  <p>any suggestion ?</p>