times

package
v0.0.0-...-817968b Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Now .

func NowUnix

func NowUnix() int64

NowUnix returns t as a Unix time, the number of seconds elapsed since January 1, 1970 UTC. The result does not depend on the location associated with t. Unix-like operating systems often record time as a 32-bit count of seconds, but since the method here returns a 64-bit value it is valid for billions of years into the past or future.

func SetClock

func SetClock(c clock.Clock)

SetClock 替换默认clock

func Since

func Since(t time.Time) time.Duration

Since .

func Sleep

func Sleep(d time.Duration)

Sleep .

func Start

func Start() uint64

Start 启动定时器,只会触发1次

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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