The NtpTimestampDifference type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Add |
Adds the specified time difference to this instance.
| |
| CompareTo |
Compares this instance to a specified object and returns an indication of their relative values.
| |
| Equals |
Indicates whether the specified object is equal to the current object.
(Overrides ValueType..::..Equals(Object).) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode |
Returns a hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Negate |
Changes the sign of the time difference (positive to negative and vice-versa).
| |
| Subtract |
Subtracts the specified time difference from this instance.
| |
| ToString |
Converts the value of this instance to its string representation.
(Overrides ValueType..::..ToString()()()().) | |
| ToTimeSpan |
Gets the TimeSpan instance that represents the time difference.
|
Operators
| Name | Description | |
|---|---|---|
| Addition |
Adds a time difference to a timestamp.
| |
| Equality |
Compare two instances of NtpTimestampDifference.
| |
| GreaterThan |
Indicates whether a specified NtpTimestampDifference is greater than
another specified NtpTimestampDifference.
| |
| GreaterThanOrEqual |
Indicates whether a specified NtpTimestampDifference is greater than
or equal to another specified NtpTimestampDifference.
| |
| Inequality |
Compare two instances of NtpTimestampDifference.
| |
| LessThan |
Indicates whether a specified NtpTimestampDifference is less than
another specified NtpTimestampDifference.
| |
| LessThanOrEqual |
Indicates whether a specified NtpTimestampDifference is less than
or equal to another specified NtpTimestampDifference.
| |
| Subtraction |
Subtracts a time difference from a timestamp.
|
Fields
| Name | Description | |
|---|---|---|
| MaxValue |
Represents the largest possible value of NtpTimestampDifference.
| |
| MinValue |
Represents the smallest possible value of NtpTimestampDifference.
|
Properties
| Name | Description | |
|---|---|---|
| Microsecond |
The sub-second part of the time difference, on microsecond scale.
| |
| Positive |
Accessor for the sign of the time difference.
| |
| TotalSeconds |
Gets the value of this instance expressed in whole and fractional seconds.
|