lamport

package
v0.0.0-...-b71ab6a Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Second = uint64(time.Second)
	Minute = uint64(time.Minute)
)

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() *Clock

func (*Clock) Inc

func (c *Clock) Inc() Time

func (*Clock) Now

func (c *Clock) Now() Time

func (*Clock) Update

func (c *Clock) Update(t Time)

type Time

type Time uint64

func ToTime

func ToTime(t uint64) Time

func (Time) Uint64

func (t Time) Uint64() uint64

Jump to

Keyboard shortcuts

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