clock

package
v0.0.0-...-e034a0f Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() time.Time
}

type RealClock

type RealClock struct {
}

func (*RealClock) Now

func (r *RealClock) Now() time.Time

type UnRealClock

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

func (*UnRealClock) Add

func (ur *UnRealClock) Add(nanoSeconds int64) time.Time

func (*UnRealClock) AddSeconds

func (ur *UnRealClock) AddSeconds(seconds int64) time.Time

func (*UnRealClock) Now

func (ur *UnRealClock) Now() time.Time

func (*UnRealClock) ResetTime

func (ur *UnRealClock) ResetTime(nanoSeconds int64)

func (*UnRealClock) ResetTimeSeconds

func (ur *UnRealClock) ResetTimeSeconds(seconds int64)

Jump to

Keyboard shortcuts

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