Documentation
¶
Overview ¶
Package clock provides a test-overridable millisecond clock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetForTesting ¶
func SetForTesting(fn func() int64)
SetForTesting overrides the clock. Call ResetForTesting to restore.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.