From 82898f1d5c0002fe0c1611af38eb39b99f35fc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 13 Feb 2022 15:22:18 +0100 Subject: [PATCH] Added DeltaTime --- GlitchyEngine/src/GameTime.bf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GlitchyEngine/src/GameTime.bf b/GlitchyEngine/src/GameTime.bf index 7c246a1..5d4649b 100644 --- a/GlitchyEngine/src/GameTime.bf +++ b/GlitchyEngine/src/GameTime.bf @@ -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. */