Class Ntp64Timestamp
Inheritance
System.Object
Ntp64Timestamp
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: SIPSorcery.dll
Syntax
public class Ntp64Timestamp
Methods
|
Improve this Doc
View Source
AddFraction(UInt64, Double)
Declaration
public static ulong AddFraction(ulong timestamp, double fraction)
Parameters
Type |
Name |
Description |
System.UInt64 |
timestamp |
|
System.Double |
fraction |
|
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
AddSeconds(UInt64, UInt32)
Declaration
public static ulong AddSeconds(ulong timestamp, uint seconds)
Parameters
Type |
Name |
Description |
System.UInt64 |
timestamp |
|
System.UInt32 |
seconds |
|
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
GetDatetime(UInt64)
Declaration
public static DateTime GetDatetime(ulong timestamp)
Parameters
Type |
Name |
Description |
System.UInt64 |
timestamp |
|
Returns
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
GetFraction(UInt64)
Declaration
public static uint GetFraction(ulong timestamp)
Parameters
Type |
Name |
Description |
System.UInt64 |
timestamp |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetSeconds(UInt64)
Declaration
public static uint GetSeconds(ulong timestamp)
Parameters
Type |
Name |
Description |
System.UInt64 |
timestamp |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
InterpolateDatetime(TimestampPair, UInt32, Int32)
Declaration
public static DateTime InterpolateDatetime(TimestampPair lastTimestampPair, uint currentRtpTimestamp, int clockrate)
Parameters
Type |
Name |
Description |
TimestampPair |
lastTimestampPair |
|
System.UInt32 |
currentRtpTimestamp |
|
System.Int32 |
clockrate |
|
Returns
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
InterpolateNtpTime(TimestampPair, UInt32, Int32)
Declaration
public static ulong InterpolateNtpTime(TimestampPair lastTimestampPair, uint currentRtpTimestamp, int clockrate)
Parameters
Type |
Name |
Description |
TimestampPair |
lastTimestampPair |
|
System.UInt32 |
currentRtpTimestamp |
|
System.Int32 |
clockrate |
|
Returns
Type |
Description |
System.UInt64 |
|
Extension Methods