Added DeltaTime

This commit is contained in:
Simon Lübeß
2022-02-13 15:22:18 +01:00
parent a2db0774f8
commit e61c53400f
+4 -1
View File
@@ -27,7 +27,10 @@ namespace GlitchyEngine
* The number of frames that have been finished since the timer was started.
*/
public uint64 FrameCount => _frameCount;
/// The interval in seconds from the last frame to the current one.
public float DeltaTime => (float)_frameTime.TotalSeconds;
/**
* Initializes a new instance of a GameTime.
*/