-
-
Save SpacePurr/83f26322291eba11322437169dbd0766 to your computer and use it in GitHub Desktop.
Stopwatch
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 startTime = System.Diagnostics.Stopwatch.StartNew(); | |
//Выполняемый код | |
startTime.Stop(); | |
var resultTime = startTime.Elapsed; | |
var elapsedTime = $"{resultTime.Hours:00}:{resultTime.Minutes:00}:{resultTime.Seconds:00}.{resultTime.Milliseconds:000}"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment