time

package
v0.0.0-...-3bf8caa Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0, GPL-3.0, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package time is a wrapper around the go standard time library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Now returns the current local time.

func SetCurrentTime

func SetCurrentTime(t int64)

func Since

func Since(t time.Time) time.Duration

Since returns the duration since t.

func Until

func Until(t time.Time) time.Duration

Until returns the duration until t.

Types

This section is empty.

Directories

Path Synopsis
Package mclockutil is a wrapper for a monotonic clock source.
Package mclockutil is a wrapper for a monotonic clock source.
Package slots includes ticker and timer-related functions for Ethereum consensus.
Package slots includes ticker and timer-related functions for Ethereum consensus.
testing
Package testing includes useful mocks for slot tickers in unit tests.
Package testing includes useful mocks for slot tickers in unit tests.

Jump to

Keyboard shortcuts

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