mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 08:07:22 +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()
|
|
}
|