time

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Nanosecond  = 1
	Microsecond = Nanosecond * 1000
	Millisecond = Microsecond * 1000
	Second      = Millisecond * 1000
	Minute      = Second * 60
	Hour        = Minute * 60
	Day         = Hour * 24
	Week        = Day * 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() Time
}

type Duration

type Duration int64

type Location added in v0.2.1

type Location struct {
}

type Time

type Time struct {
	Sec  int64
	NSec int32

	Loc *Location
}

type Timer

type Timer interface {
	Reset(Duration) bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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