From eea2df24e7ffe392e56a4debc392a288e459a595 Mon Sep 17 00:00:00 2001 From: lifeiyi <736926938@qq.com> Date: Mon, 29 Apr 2019 15:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/Timer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/Timer.go b/util/Timer.go index 320cfc8..5054692 100644 --- a/util/Timer.go +++ b/util/Timer.go @@ -13,6 +13,10 @@ func (slf *Timer) SetupTimer(ms int32) { slf.timeinterval = int64(ms) * 1e6 } +func (slf *Timer) SetupTimerOnlyInterval(ms int32) { + slf.timeinterval = int64(ms) * 1e6 +} + func (slf *Timer) SetupTimerTheHour(ms int32) { timeNow := time.Now() nt := timeNow.Truncate(time.Hour * 1)