From 08effd5bcac79d6642aecbfd8aa68fdac92ed1e8 Mon Sep 17 00:00:00 2001 From: boyce <6549168@qq.com> Date: Thu, 16 Oct 2025 10:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/timer/heap.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/timer/heap.go b/util/timer/heap.go index 6aa2312..1b6944a 100644 --- a/util/timer/heap.go +++ b/util/timer/heap.go @@ -112,3 +112,8 @@ func Now() time.Time { func SetTimeOffset(offset time.Duration) { timeOffset = offset } + +// AddTimeOffset 添加时间偏移量 +func AddTimeOffset(addOffset time.Duration) { + timeOffset += addOffset +} \ No newline at end of file