I had the task to test a method and measure how much time was taken.
Here is how i did it:
Stopwatch sw = new System.Diagnostics.Stopwatch();
sw.Start();
FillDropDownList();
buttonContinue.Text = "it take... (ms): " + sw.ElapsedMilliseconds;
sw.Stop();
Notice that in order to use StopWatch you will need the System.Diagnostics.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment