Share via


GameTime.TotalGameTime Property

The amount of game time since the start of the game.

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

Syntax

public TimeSpan TotalGameTime { get; set; }

Property Value

Game time since the start of the game.

Remarks

Fixed-step clocks update by a fixed time span upon every clock step. This results in uniform clock steps that may not actually track the wall clock time. Fixed step clocks were popular on console systems where one had tight control over code and a fixed system performance. Fixed-step clocks are also useful when trying to achieve deterministic updates for debugging, offline rendering, or other such scenarios.

See Also

Tasks

How to: Make a Game Use a Variable Time Step

Concepts

Application Model Overview

Reference

GameTime Class
GameTime Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista