GameTime is a snapshot of time during the simulation. It is managed by the GameTimer class for
its values to be set.
Declaration Syntax
C# |
public sealed class GameTime
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
GameTime(TimeSpan, TimeSpan) |
Creates a new GameTime snapshot with the specified elapsed time and total time.
|
|
ElapsedGameTime |
Elapsed time since the last snapshot.
|
|
ElapsedTimeInSeconds |
Convience method for getting the elapsed time since the last snapshot
in seconds. Alternatively you can use GameTime.ElapsedGameTime.TotalSeconds,
although this value is cached.
|
|
Equals(Object) |
(Inherited from Object.) |
|
GetHashCode()()()() |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
ToString()()()() |
(Inherited from Object.) |
|
TotalGameTime |
Total time the simulation has been running.
|
Inheritance Hierarchy
Object | |
GameTime |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)