I'm looking for a simple way to display minutes, seconds and milli seconds for timing the elapsed time in a game. Do I have to do the calculation myself with gameTime and display a variable for each part like a variable for minutes, secounds and milli seconds? Preciates some help! Thanks!
You can already get all these three from GameTime:
gameTime.TotalGameTime offers Minutes, Seconds and Milliseconds for units to measure how long the game has been going for.
int milliseconds = gameTime.TotalGameTime.Milliseconds; int seconds = gameTime.TotalGameTime.Seconds; etc
If you just want the time since the last update, use