clock

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT 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{}

...

func New

func New() *Clock

...

func (*Clock) Now

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

...

func (*Clock) Since added in v0.0.12

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

...

func (*Clock) Until added in v0.0.12

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

...

Jump to

Keyboard shortcuts

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