Time of operation execution
using System.Diagnostics; Stopwatch sWatch = new Stopwatch(); sWatch.Start(); // some operations sWatch.Stop(); MessageBox.Show(sWatch.ElapsedMilliseconds.ToString());