code_junkie

How do you measure code block (thread) execution time with multiple concurrent threads in .NET

Nov 13th, 2011
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. stopWatch.Start();
  2. try
  3. {
  4. method();
  5. }
  6. finally
  7. {
  8. stopWatch.Stop();
  9. }
Add Comment
Please, Sign In to add comment