Source: golang-github-bep-clock Section: golang Priority: optional Maintainer: Debian Go Packaging Team Uploaders: Anthony Fok Rules-Requires-Root: no Build-Depends: debhelper-compat (= 13), dh-sequence-golang, golang-any, golang-github-frankban-quicktest-dev, golang-github-google-go-cmp-dev Testsuite: autopkgtest-pkg-go Standards-Version: 4.6.1 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-bep-clock Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-bep-clock.git Homepage: https://github.com/bep/clock XS-Go-Import-Path: github.com/bep/clock Package: golang-github-bep-clock-dev Architecture: all Multi-Arch: foreign Depends: golang-github-frankban-quicktest-dev, golang-github-google-go-cmp-dev, ${misc:Depends} Description: Golang clock that allows you to set the start time (Go library) This package provides a *ticking clock* that allows you to set the start time. It also provides a system clock, both implementing this interface: . // Clock provides a subset of methods in time.Time type Clock interface { Now() time.Time Since(t time.Time) time.Duration Until(t time.Time) time.Duration . // Offset returns the offset of this clock relative to the system clock Offset() time.Duration } . Note that this only support a subset of all the methods in time.Time (see above) and is by design very simple. For a more advanced time mocking library, have a look at .