clock

package
v0.0.0-...-56986d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TEST_TIMESTAMP = 1234

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() time.Time
	Since(t time.Time) time.Duration
}

type StoppedClock

type StoppedClock struct{}

func (StoppedClock) Now

func (StoppedClock) Now() time.Time

func (StoppedClock) Since

func (StoppedClock) Since(t time.Time) time.Duration

type SystemClock

type SystemClock struct{}

func (SystemClock) Now

func (SystemClock) Now() time.Time

func (SystemClock) Since

func (SystemClock) Since(t time.Time) time.Duration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL