package
Version:
v0.53.0
Opens a new window with list of versions in this module.
Published: Nov 4, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package clock gives the commands the system time, pauses and jitter that
the use cases take as ports, so the use cases stay testable.
Jitter returns a random duration in [0, bound), or 0 when bound is not
positive.
System is the system clock.
Now returns the current time.
Sleep returns after d, or with the error of ctx once it is done.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.