Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
Clock represents an interface around time management.
Normally, one would just use the `time` package and be done with it. However, that makes it quite difficult to properly test functions are grabbing time values using the wallclock. The goal of this interface is to allow time-dependent code to abstract the underlying clock away so we can freeze/modify it during testing.
Click to show internal directories.
Click to hide internal directories.