mirror of
https://gitee.com/zhangsken/aliyunpan.git
synced 2026-10-16 10:29:42 +08:00
fix complie error for go18+ sdk #175
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user