timing

package
v0.15.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Now = func() time.Time {
	return time.Now().UTC()
}

Functions

func MustParse

func MustParse(in string) time.Time

func ParseUnix

func ParseUnix(timestamp int64) time.Time

ParseUnix parses a unix timestamp into a time.Time it accepts an integer which can be either milli or nano

func TimeDiff

func TimeDiff(start, end time.Time) time.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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