I’ve been playing around with the Stopwatch class using .NET Framework 4.0. It contains great set of methods which you can use to measure the elapsed time while your code executes. It's definitely better to use Stopwatch instead of DateTime or TimeSpan...