GameTime Constructor (TimeSpan, TimeSpan, Boolean)
Creates a new instance of GameTime.
Syntax
'Declaration
Public Sub New ( _
totalGameTime As TimeSpan, _
elapsedGameTime As TimeSpan, _
isRunningSlowly As Boolean _
)
public GameTime (
TimeSpan totalGameTime,
TimeSpan elapsedGameTime,
bool isRunningSlowly
)
public:
GameTime(
TimeSpan totalGameTime,
TimeSpan elapsedGameTime,
bool isRunningSlowly
)
Parameters
- totalGameTime
Type: TimeSpan
The amount of game time since the start of the game. - elapsedGameTime
Type: TimeSpan
The amount of elapsed game time since the last update. - isRunningSlowly
Type: Boolean
Whether the game is running multiple updates this frame.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
GameTime Class
GameTime Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone