timex

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Clock     clock.Clock
	IsTesting bool
)

Functions

func Add

func Add(d time.Duration)

func GetNow

func GetNow() time.Time

func GetNowInMilli

func GetNowInMilli() int64

func GetTicker

func GetTicker(duration int64) *clock.Ticker

GetTicker Time related. For Mock

func GetTimer

func GetTimer(duration int64) *clock.Timer

func GetTimerByTime

func GetTimerByTime(t time.Time) *clock.Timer

func InitClock

func InitClock()

func Set

func Set(t int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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