roughtime

package
v1.0.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package roughtime is a wrapper for a roughtime clock source.

Index

Constants

View Source
const RecalibrationInterval = time.Hour

RecalibrationInterval for roughtime and system time differences. Set as a default of once per hour.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Now returns the current local time given the roughtime offset.

func Since

func Since(t time.Time) time.Duration

Since returns the duration since t, based on the roughtime response

func Until

func Until(t time.Time) time.Duration

Until returns the duration until t, based on the roughtime response

Types

This section is empty.

Jump to

Keyboard shortcuts

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