Struct TimeStep
Represents the amount of time elapsed since the last update.
public struct TimeStep : IEquatable<TimeStep>
- Implements
- Inherited Members
Constructors
- TimeStep(double, double)
Initializes a new instance of the TimeStep structure using the specified fixed-step elapsed time and variable-step elapsed clock time.
Fields
- ElapsedRealTime
The amount of elapsed time since the last update, in seconds, following the host computer clock.
- ElapsedTime
The amount of elapsed time since the last update, in seconds.
Methods
- Add(TimeStep, TimeStep)
Adds two TimeStep values together.
- Add(ref TimeStep, ref TimeStep, out TimeStep)
Adds two TimeStep values together and stores the result in a return value.
- Equals(TimeStep)
Returns a value indicating whether this instance is equal to the specified TimeStep structure.
- Equals(object)
Returns a value indicating whether the specified object is a TimeStep structure with the same timing values as this TimeStep object.
- GetHashCode()
Returns a hash code for this TimeStep value.
- Subtract(TimeStep, TimeStep)
Subtracts the second TimeStep value from the first.
- Subtract(ref TimeStep, ref TimeStep, out TimeStep)
Subtracts the second TimeStep value from the first and stores the result in a return value.
Operators
- operator +(TimeStep, TimeStep)
Adds two TimeStep values together.
- operator ==(TimeStep, TimeStep)
Indicates whether two TimeStep values are equal.
- operator !=(TimeStep, TimeStep)
Indicates whether two TimeStep values are different.
- operator -(TimeStep, TimeStep)
Subtracts the second TimeStep value from the first.