From 974b741d4f824fac11e52b763ac990cb9bff2f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=AB=E6=AC=A3=E6=B5=B7?= Date: Wed, 26 Mar 2025 18:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Time.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Time.md b/docs/Time.md index c5b9b93..dbafd40 100644 --- a/docs/Time.md +++ b/docs/Time.md @@ -1,6 +1,8 @@ ## 时间 添加一系列时间相关的函数 +* 获取到服务器时间后,调用 `Time.setNetTime` 后,会自动计算本地时间和服务器时间的差值,之后通过`Time.now()`获取到的时间都是计算过差值后的时间戳 + ```typescript /** 获取游戏系统启动时间戳 */ static get osBootTime(): number;