lotus/build/clock.go

11 lines
339 B
Go
Raw Normal View History

2020-07-10 14:43:14 +00:00
package build
import "github.com/raulk/clock"
// Clock is the global clock for the system. In standard builds,
// we use a real-time clock, which maps to the `time` package.
//
// Tests that need control of time can replace this variable with
2020-07-27 15:31:36 +00:00
// clock.NewMock(). Always use real time for socket/stream deadlines.
2020-07-10 14:43:14 +00:00
var Clock = clock.New()