ManualClock Class |
Namespace: DigitalRune.Game.Timing
The ManualClock type exposes the following members.
Name | Description | |
---|---|---|
ManualClock |
Initializes a new instance of the ManualClock class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnTimeChanged |
Raises the TimeChanged event.
| |
Reset |
Stops the clock and resets all times to 0.
| |
Start |
Starts/resumes the clock.
| |
Stop |
Pauses the clock.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update |
Increases the time by the specified time span if the clock is running. (This method needs to
be called regularly.)
|
Name | Description | |
---|---|---|
DeltaTime |
Gets the amount of time that has elapsed since the last TimeChanged
event.
| |
GameTime |
Gets the game time, which is the sum of all DeltaTime values.
| |
IsRunning |
Gets a value indicating whether the clock is running.
| |
MaxDeltaTime |
Gets the max limit for DeltaTime.
| |
TotalTime |
Gets the duration (wall clock time) for which the clock is running.
|
Name | Description | |
---|---|---|
TimeChanged |
Occurs when the time changed.
|
Name | Description | |
---|---|---|
IGameClockResetDeltaTime |
Not supported.
|
This IGameClock does not measure time by itself. Update(TimeSpan) must be called regularly to advance the time.
See IGameClock for more information.