Yasher
8/22/2013 - 6:46 AM

Time of operation execution

Time of operation execution

using System.Diagnostics; 

Stopwatch sWatch = new Stopwatch();

  sWatch.Start();

// some operations
  
  sWatch.Stop();

  MessageBox.Show(sWatch.ElapsedMilliseconds.ToString());