Home
Manage Your Code
Snippet: Stop Watch (C#)
Title: Stop Watch Language: C#
Description: use this to find out how long it take to execute a line(s) of code Views: 281
Author: a z Date Added: 7/30/2008
Copy Code  
1System.Diagnostics.Stopwatch sp = new System.Diagnostics.Stopwatch();
2sp.Start();
3sp.Stop();
4sp.Elapsed.ToString();