Documentation ¶
Overview ¶
Package rtptime manipulates RTP and NTP time
Index ¶
- Constants
- func FromDuration(d time.Duration, hz uint32) int64
- func Jiffies() uint64
- func Microseconds() uint64
- func NTPToTime(ntp uint64) time.Time
- func Now(hz uint32) uint64
- func TimeToJiffies(tm time.Time) uint64
- func TimeToNTP(tm time.Time) uint64
- func ToDuration(tm int64, hz uint32) time.Duration
Constants ¶
View Source
const JiffiesPerSec = 24576000
JiffiesPerSec is the number of jiffies in a second. This is the LCM of 48000, 96000 and 65536.
Variables ¶
This section is empty.
Functions ¶
func FromDuration ¶
FromDuration converts a time.Duration into units of 1/hz.
func TimeToJiffies ¶
TimeToJiffies converts a time.Time into jiffies.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.