timing

package
v0.14.9-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 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