timex

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Duration

func ReprOfDuration

func ReprOfDuration(duration time.Duration) string

func Since

func Since(d time.Duration) time.Duration

func Time

func Time() time.Time

Types

type FakeTicker

type FakeTicker interface {
	Ticker
	Done()
	Tick()
	Wait(d time.Duration) error
}

func NewFakeTicker

func NewFakeTicker() FakeTicker

type Ticker

type Ticker interface {
	Chan() <-chan time.Time
	Stop()
}

func NewTicker

func NewTicker(d time.Duration) Ticker

Jump to

Keyboard shortcuts

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