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(); |
❤️❤️❤️ Does my content help you? Consider a small donation if this blog helped you❤️❤️❤️
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(); |
❤️❤️❤️ Does my content help you? Consider a small donation if this blog helped you❤️❤️❤️