public class GameTime
extends java.lang.Object
Constructor and Description |
---|
GameTime()
Creates a new instance of GameTime.
|
GameTime(System.TimeSpan totalGameTime,
System.TimeSpan elapsedGameTime)
Creates a new instance of GameTime.
|
GameTime(System.TimeSpan totalGameTime,
System.TimeSpan elapsedGameTime,
boolean isRunningSlowly)
Creates a new instance of GameTime.
|
Modifier and Type | Method and Description |
---|---|
System.TimeSpan |
getElapsedGameTime()
The amount of elapsed game time since the last update.
|
boolean |
getIsRunningSlowly()
Gets a value indicating that the game loop is taking longer that its TargetElapsedTime.
|
System.TimeSpan |
getTotalGameTime()
The amount of game time since the start of the game.
|
public GameTime()
public GameTime(System.TimeSpan totalGameTime, System.TimeSpan elapsedGameTime)
totalGameTime
- The amount of game time since the start of the game.elapsedGameTime
- The amount of elapsed game time since the last update.public GameTime(System.TimeSpan totalGameTime, System.TimeSpan elapsedGameTime, boolean isRunningSlowly)
totalGameTime
- The amount of game time since the start of the game.elapsedGameTime
- The amount of elapsed game time since the last update.isRunningSlowly
- Whether the game is running multiple updates this frame.public System.TimeSpan getElapsedGameTime()
public boolean getIsRunningSlowly()
public System.TimeSpan getTotalGameTime()