GameTime Constructor (TimeSpan, TimeSpan)

Creates a new instance of GameTime.

Syntax

'Declaration
Public Sub New ( _
         totalGameTime As TimeSpan, _
         elapsedGameTime As TimeSpan _
)
public GameTime (
         TimeSpan totalGameTime,
         TimeSpan elapsedGameTime
)
public:
GameTime(
         TimeSpan totalGameTime,
         TimeSpan elapsedGameTime
)

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.

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