Created a new GameTime class for time measurement