mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 12:01:20 +00:00
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()
|
|
}
|