package internal

import "go.opentelemetry.io/otel/sdk/internal"

Index

Functions

func MonotonicEndTime

func MonotonicEndTime(start time.Time) time.Time

MonotonicEndTime returns the end time at present but offset from start, monotonically.

The monotonic clock is used in subtractions hence the duration since start added back to start gives end as a monotonic time. See https://golang.org/pkg/time/#hdr-Monotonic_Clocks

Source Files

gen.go internal.go

Directories

PathSynopsis
internal/env
internal/internaltest
internal/matchers
Version
v1.17.0
Published
Aug 28, 2023
Platform
windows/amd64
Imports
1 packages
Last checked
16 minutes ago

Tools for package owners.