Stopwatch sw = new Stopwatch();
sw.Start();
Thread.Sleep(2000);
sw.Stop();
System.Diagnostics.Trace.WriteLine(sw.Elapsed);
Stopwatch sw = new Stopwatch();
sw.Start();
Thread.Sleep(2000);
sw.Stop();
System.Diagnostics.Trace.WriteLine(sw.Elapsed);