Click or drag to resize
DigitalRuneFixedStepTimerLostTime Property
Gets the amount of time dropped in the current time step.

Namespace: DigitalRune.Game.Timing
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public TimeSpan LostTime { get; }

Property Value

Type: TimeSpan
The lost time.

Implements

IGameTimerLostTime
Remarks

If a time step takes longer than MaxNumberOfStepsStepSize seconds the time above this value is dropped. The dropped time will not be recovered in the next time step. The time is lost.

LostTime is adjusted each time step and only refers to the current time step. (The lost time of multiple time steps is not accumulated.)

A value greater than 0 indicates that the application is running too slow: The last time step took longer than MaxNumberOfSteps · StepSize seconds to compute.

The value is also scaled by Speed. Time, DeltaTime, IdleTime, and LostTime have the same scale. Except that IdleTime and LostTime cannot be negative. They always return the absolute value.

See Also