mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added DeltaTime
This commit is contained in:
@@ -27,7 +27,10 @@ namespace GlitchyEngine
|
|||||||
* The number of frames that have been finished since the timer was started.
|
* The number of frames that have been finished since the timer was started.
|
||||||
*/
|
*/
|
||||||
public uint64 FrameCount => _frameCount;
|
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.
|
* Initializes a new instance of a GameTime.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user