time

package
v0.0.0-...-9990c76 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package time holds time related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver converts kernel monotonic timestamps to absolute times

func NewResolver

func NewResolver() (*Resolver, error)

NewResolver returns a new time resolver

func (*Resolver) ApplyBootTime

func (tr *Resolver) ApplyBootTime(timestamp time.Time) time.Time

ApplyBootTime return the time re-aligned from the boot time

func (*Resolver) ComputeMonotonicTimestamp

func (tr *Resolver) ComputeMonotonicTimestamp(timestamp time.Time) int64

ComputeMonotonicTimestamp converts an absolute time to a kernel monotonic timestamp

func (*Resolver) GetBootTime

func (tr *Resolver) GetBootTime() time.Time

GetBootTime returns boot time

func (*Resolver) ResolveMonotonicTimestamp

func (tr *Resolver) ResolveMonotonicTimestamp(timestamp uint64) time.Time

ResolveMonotonicTimestamp converts a kernel monotonic timestamp to an absolute time

Jump to

Keyboard shortcuts

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