| HighPrecisionClock Class |
Namespace: DigitalRune.Game.Timing
The HighPrecisionClock type exposes the following members.
| Name | Description | |
|---|---|---|
| HighPrecisionClock |
Initializes a new instance of the HighPrecisionClock 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.
| |
| ResetDeltaTime |
Resets the time measurement for the current DeltaTime. The next
DeltaTime will be the time since ResetDeltaTime was called.
| |
| Start |
Starts/resumes the clock.
| |
| Stop |
Pauses the clock.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Update |
Updates the time (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.
|
The method Update has to be called regularly to trigger TimeChanged events.
The HighPrecisionClock by default uses a performance counter to accurately measure time. If no performance counter is available, the system timer is used to measures elapsed time.
See IGameClock for more information.