Share via


Game.ResetElapsedTime Method

Resets the elapsed time counter.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public void ResetElapsedTime ()

Remarks

Use this method if your game is recovering from a slow-running state, and ElapsedGameTime is too large to be useful.

See Also

Reference

Game Class
Game Members
ElapsedGameTime
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP