Created
April 28, 2016 11:41
-
-
Save ZackStone/6b41a073122293872e37ff99ebc31f33 to your computer and use it in GitHub Desktop.
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
private DateTime[] StartTime; | |
private void ContaTempo(int i) | |
{ | |
if (StartTime[i] == DateTime.MinValue) | |
{ | |
StartTime[i] = DateTime.Now; | |
} | |
else | |
{ | |
TimeSpan ts = DateTime.Now.TimeOfDay.Subtract(StartTime[i].TimeOfDay); | |
StartTime[i] = DateTime.MinValue; | |
System.Diagnostics.Debug.WriteLine("Tempo:\t" + ts.ToString("mm\\:ss\\:fffffff")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment