A better way is to use the Stopwatch class:
using System.Diagnostics; // ... Stopwatch sw = new Stopwatch(); sw.Start(); // ... sw.Stop(); Console.WriteLine("Elapsed={0}",sw.Elapsed);
1.4m articles
1.4m replys
5 comments
56.9k users