clock

package
v1.3.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 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 struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Clock) AfterFunc

func (cl *Clock) AfterFunc(d time.Duration, f func()) common.Timer

func (*Clock) NewTimer

func (cl *Clock) NewTimer(d time.Duration) common.Timer

func (*Clock) Now

func (cl *Clock) Now() time.Time

func (*Clock) PassTime

func (cl *Clock) PassTime(d time.Duration)

func (*Clock) SetTime

func (cl *Clock) SetTime(t time.Time)

func (*Clock) Sleep

func (cl *Clock) Sleep(d time.Duration)

Jump to

Keyboard shortcuts

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