Core/Movement: Add time synchronisation (Needs tested)
Port From (https://github.com/TrinityCore/TrinityCore/commit/c19a4db1c12b8864d6c486ee8e2f0e058fb4155a)
This commit is contained in:
@@ -82,6 +82,12 @@ public static class Time
|
||||
return newMSTime - oldMSTime;
|
||||
}
|
||||
|
||||
public static uint GetMSTimeDiff(uint oldMSTime, DateTime newTime)
|
||||
{
|
||||
uint newMSTime = (uint)(newTime - ApplicationStartTime).TotalMilliseconds;
|
||||
return GetMSTimeDiff(oldMSTime, newMSTime);
|
||||
}
|
||||
|
||||
public static uint GetMSTimeDiffToNow(uint oldMSTime)
|
||||
{
|
||||
var newMSTime = GetMSTime();
|
||||
|
||||
Reference in New Issue
Block a user