Files
go-ethereum/vendor/github.com/allegro/bigcache/clock.go
2018-11-15 12:22:13 +02:00

15 lines
168 B
Go

package bigcache
import "time"
type clock interface {
epoch() int64
}
type systemClock struct {
}
func (c systemClock) epoch() int64 {
return time.Now().Unix()
}