Skip to content

Commit 3774b59

Browse files
committed
[修复]1. 修复时间差计算错误问题
GameFrameX/GameFrameX.Unity#25
1 parent 972fda5 commit 3774b59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/Helper/TimerHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static void SetDifferenceTime(long timeSpan)
6464

6565
if (_isSecLevel)
6666
{
67-
_differenceTime = timeSpan - ClientNow();
67+
_differenceTime = timeSpan - ClientNowSeconds();
6868
}
6969
else
7070
{
@@ -108,7 +108,7 @@ public static long ServerNow() //秒级
108108
{
109109
if (_isSecLevel)
110110
{
111-
return _differenceTime + ClientNow();
111+
return _differenceTime + ClientNowMillisecond();
112112
}
113113

114114
return (_differenceTime + ClientNowMillisecond()) / 1000;

0 commit comments

Comments
 (0)