From c79994e47455f62f617429995543ed1b5c0d6824 Mon Sep 17 00:00:00 2001 From: lifeiyi <736926938@qq.com> Date: Thu, 28 Feb 2019 11:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0reset=E6=96=B9=E6=B3=95?= 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 0d175a6..002572c 100644 --- a/util/Timer.go +++ b/util/Timer.go @@ -23,3 +23,7 @@ func (slf *Timer) CheckTimeOut() bool { return false } + +func (slf *Timer) Reset() { + slf.lasttime = time.Now().UnixNano() +}