Stopwatch code to time some other code, the namespace is System.Diagnostics
1 | var sw = new Stopwatch(); |
Now allow your code to execute, you can test this with a loop or wait
Then stop and display the time taken:
1 | sw.Stop(); |
Stopwatch code to time some other code, the namespace is System.Diagnostics
1 | var sw = new Stopwatch(); |
Now allow your code to execute, you can test this with a loop or wait
Then stop and display the time taken:
1 | sw.Stop(); |