mockable
Package mockable
import "github.com/luxfi/node/utils/timer/mockable"Types
Clock
Clock acts as a thin wrapper around global time that allows for easy testing. It is safe for concurrent use.
func (c *Clock) Set(t time.Time)func (c *Clock) Sync()func (c *Clock) Time() time.Timefunc (c *Clock) Unix() uint64func (c *Clock) UnixTime() time.Time