mclock

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package mclock is a wrapper for a monotonic clock source.

mclock package provides a Now() function which returns the current time in nanoseconds from a monotonic clock in Duration type. The returned time is based on some arbitrary platform-specific point in the past. The returned time is guaranteed to increase monotonically at a constant rate, unlike time.Now() from the Go standard library, which may slow down, speed up, jump forward or backward, due to NTP activity or leap seconds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbsTime

type AbsTime time.Duration // absolute monotonic time

func Now

func Now() AbsTime

Jump to

Keyboard shortcuts

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