Created
October 30, 2015 22:09
-
-
Save csharpforevermore/541396862e0fc885c053 to your computer and use it in GitHub Desktop.
Stopwatch Timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stopwatch = Stopwatch.StartNew(); | |
for (int i = 1; i < 1000000000; i++) | |
{ | |
// run method here | |
} | |
stopwatch.Stop(); | |
Console.writeline("Elapsed time: {0}", stopwatch.Elapsed); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment