Table of Contents

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

float

Scale

float Scale { get; set; }

Property Value

float

Methods

GetDeltaTime()

Gets the amount time that has passed since the last frame of the simulation, in seconds.

float GetDeltaTime()

Returns

float

GetRawDeltaTime()

Gets the unscaled, unclamped amount of time that has passes since the last frame of the simulation, in seconds.

float GetRawDeltaTime()

Returns

float

GetTotalTime()

Gets the amount time that has passed since the simulation has started, in seconds.

float GetTotalTime()

Returns

float

IsRunningSlowly()

true if deltaTime had to be clamped to MaxDeltaTime this frame.

bool IsRunningSlowly()

Returns

bool