Interface ITimeProvider
- Namespace
- SimulationFramework.Components
- Assembly
- SimulationFramework.dll
Provider time measurements to an environment.
public interface ITimeProvider : ISimulationComponent, IDisposable
- Inherited Members
Properties
MaxDeltaTime
The largest value deltaTime before it's clamped.
float MaxDeltaTime { get; set; }
Property Value
Scale
float Scale { get; set; }
Property Value
Methods
GetDeltaTime()
Gets the amount time that has passed since the last frame of the simulation, in seconds.
float GetDeltaTime()
Returns
GetRawDeltaTime()
Gets the unscaled, unclamped amount of time that has passes since the last frame of the simulation, in seconds.
float GetRawDeltaTime()
Returns
GetTotalTime()
Gets the amount time that has passed since the simulation has started, in seconds.
float GetTotalTime()
Returns
IsRunningSlowly()
true if deltaTime had to be clamped to MaxDeltaTime this frame.
bool IsRunningSlowly()