duration

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PeriodDuration = 3 * time.Second
)

Functions

func CurrentRound added in v0.3.0

func CurrentRound() uint64

func DurationToRound

func DurationToRound(duration time.Duration) uint64

func DurationUntilDecrypt

func DurationUntilDecrypt(currentRound, targetRound uint64) time.Duration

func ParseDuration

func ParseDuration(duration string) (time.Duration, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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