How long need a portion of code to be executed ?
Use the Stopwatch object !
using System.Diagnostics;
// ...
Stopwatch myStopWatch = Stopwatch.StartNew();
// some code
myStopWatch.Stop();
Console.WriteLine("{0} ms - {1} ticks", myStopWatch.Elapsed.TotalMilliseconds, myStopWatch.ElapsedTicks);
// ...




WP Themes
18 Jan, 2010
Amiable fill someone in on and this post helped me alot in my college assignement. Say thank you you as your information.