mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
14 lines
168 B
Go
14 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()
|
|
}
|