Run NodesReferenceutilstimer

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.Time
func (c *Clock) Unix() uint64
func (c *Clock) UnixTime() time.Time