clock

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct {
	// contains filtered or unexported fields
}

func New

func New(resolution time.Duration) (c *Clock)

func (*Clock) Stop

func (c *Clock) Stop()

func (*Clock) Time

func (c *Clock) Time() (t time.Time)

func (*Clock) Unix

func (c *Clock) Unix() (timestamp int64)

func (*Clock) UnixNano

func (c *Clock) UnixNano() (nanoTimestamp int64)

Jump to

Keyboard shortcuts

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