Sunday, May 24, 2009

Find time Elapsed In .net without using Timer Control

System.Diagnostics.Stopwatch calcElap= new System.Diagnostics.Stopwatch();
calcElap.Start();

//do my stuff
...

calcElap.Stop();
Response.Write("Time Elapse: " + calcElap.Elapsed.ToString());

No comments:

Post a Comment

Categories