clock

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package clock provides indirection for accessing current time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Now returns current wall clock time.

func Since

func Since(t time.Time) time.Duration

Since returns time since the given timestamp.

func Until

func Until(t time.Time) time.Duration

Until returns duration of time between now and a given time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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