clock

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 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