clock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() int64
}

type FakeClock

type FakeClock struct {
	// contains filtered or unexported fields
}

func NewFakeClock

func NewFakeClock() *FakeClock

func (*FakeClock) Advance

func (fc *FakeClock) Advance(d time.Duration)

func (*FakeClock) Now

func (fc *FakeClock) Now() int64

type RealClock

type RealClock struct{}

func NewRealClock

func NewRealClock() RealClock

func (RealClock) Now

func (rc RealClock) Now() int64

Jump to

Keyboard shortcuts

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