Click or drag to resize
DigitalRuneManualClock Class
A simple game clock that needs to be updated manually.
Inheritance Hierarchy
SystemObject
  DigitalRune.Game.TimingManualClock

Namespace: DigitalRune.Game.Timing
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public class ManualClock : IGameClock

The ManualClock type exposes the following members.

Constructors
  NameDescription
Public methodManualClock
Initializes a new instance of the ManualClock class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnTimeChanged
Raises the TimeChanged event.
Public methodReset
Stops the clock and resets all times to 0.
Public methodStart
Starts/resumes the clock.
Public methodStop
Pauses the clock.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Increases the time by the specified time span if the clock is running. (This method needs to be called regularly.)
Top
Properties
  NameDescription
Public propertyDeltaTime
Gets the amount of time that has elapsed since the last TimeChanged event.
Public propertyGameTime
Gets the game time, which is the sum of all DeltaTime values.
Public propertyIsRunning
Gets a value indicating whether the clock is running.
Public propertyMaxDeltaTime
Gets the max limit for DeltaTime.
Public propertyTotalTime
Gets the duration (wall clock time) for which the clock is running.
Top
Events
  NameDescription
Public eventTimeChanged
Occurs when the time changed.
Top
Explicit Interface Implementations
Remarks

This IGameClock does not measure time by itself. Update(TimeSpan) must be called regularly to advance the time.

See IGameClock for more information.

See Also