Discover Packages
github.com/pion/interceptor
internal
ntp
package
Version:
v0.1.42
Opens a new window with list of versions in this module.
Published: Nov 15, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ntp provides conversion methods between time.Time and NTP timestamps
stored in uint64
ToNTP converts a time.Time oboject to an uint64 NTP timestamp.
ToNTP32 converts a time.Time object to a uint32 NTP timestamp.
ToTime converts a uint64 NTP timestamps to a time.Time object.
ToTime32 converts a uint32 NTP timestamp to a time.Time object, using the
highest 16 bit of the reference to recover the lost bits. The low 16 bits are
not recovered.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.