共用方式為


GameTime Constructor (TimeSpan, TimeSpan, TimeSpan, TimeSpan)

Creates a new instance of GameTime.

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

Syntax

public GameTime (
         TimeSpan totalRealTime,
         TimeSpan elapsedRealTime,
         TimeSpan totalGameTime,
         TimeSpan elapsedGameTime
)

Parameters

  • totalRealTime
    The amount of real time (wall clock) since the start of the game.
  • elapsedRealTime
    The amount of elapsed real time (wall clock) since the last frame.
  • totalGameTime
    The amount of game time since the start of the game.
  • elapsedGameTime
    The amount of elapsed game time since the last update.

See Also

Reference

GameTime Class
GameTime Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista