diff --git a/NadezdaUI/Gui/Framework/Utils/DeltaTime.cs b/NadezdaUI/Gui/Framework/Utils/DeltaTime.cs
index 6ebd406..4e947d8 100644
--- a/NadezdaUI/Gui/Framework/Utils/DeltaTime.cs
+++ b/NadezdaUI/Gui/Framework/Utils/DeltaTime.cs
@@ -12,7 +12,9 @@ public class DeltaTime
/// A new instance of the DeltaTime class.
public static DeltaTime CreatePoint()
{
- return new DeltaTime { FirstTime = DateTime.Now };
+ return new DeltaTime {
+ FirstTime = DateTime.UtcNow
+ };
}
///
/// Calculates the time difference between the current time and the stored start time.
@@ -26,9 +28,8 @@ public TimeSpan GetDeltaTime()
if(FirstTime != null)
{
-
- return DateTime.Now - FirstTime;
+ return DateTime.UtcNow - FirstTime;
}
- return TimeSpan.FromSeconds(1 / 60); //If null then return 60 FPS.
+ return TimeSpan.FromSeconds((double)1 / 60); //If null then return 60 FPS.
}
}
\ No newline at end of file