monotime

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Since

func Since(t Time) time.Duration

Types

type Time

type Time int64

Time is a monotonic clock time which is used to calculate duration. It's 2x faster than time.Time.

func Now

func Now() Time

func (Time) Add

func (t Time) Add(d time.Duration) Time

func (Time) After

func (t Time) After(u Time) bool

func (Time) Before

func (t Time) Before(u Time) bool

func (Time) Sub

func (t Time) Sub(d time.Duration) Time

Jump to

Keyboard shortcuts

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