fix complie error for go18+ sdk #175

This commit is contained in:
tickstep
2022-11-05 18:13:10 +08:00
parent 00e1c3e3d4
commit 3b18f9af78
3 changed files with 4 additions and 5 deletions
+1 -3
View File
@@ -14,7 +14,6 @@
package functions
import (
"github.com/tickstep/library-go/expires"
"sync/atomic"
"time"
)
@@ -36,9 +35,8 @@ func (s *Statistic) TotalSize() int64 {
func (s *Statistic) StartTimer() {
s.startTime = time.Now()
expires.StripMono(&s.startTime)
}
func (s *Statistic) Elapsed() time.Duration {
return time.Now().Sub(s.startTime)
}
}