<p>I need to find a bottleneck and need to accurately as possible measure time.</p>

<p>Is the following code snippet the best way to measure the performance?</p>

<pre><code>DateTime startTime = DateTime.Now;

// Some execution process

DateTime endTime = DateTime.Now;
TimeSpan totalTimeTaken = endTime.Subtract(startTime);
</code></pre>

The
stopwatch
functionality would be better (higher precision).  I'd also recommend just downloading one of the popular profilers, though (
DotTrace
and
ANTS
are the ones I've used the most... the free trial for DotTrace is fully functional and doesn't nag like some of the others).