forked from cerc-io/ipld-eth-server
d41209d293
* Bump geth to 1.8.20 for Constantinople * Fix conflicting import/toml source for logrus
15 lines
168 B
Go
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()
|
|
}
|