Struct TimeValue
Structure for time value representation.
Implements
Namespace: OpenDDSharp
Assembly: OpenDDSharp.dll
Syntax
public struct TimeValue
Properties
| Improve this Doc View SourceMicroSeconds
Gets or sets the microseconds.
Declaration
public int MicroSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Seconds
Gets or sets the seconds.
Declaration
public long Seconds { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Methods
| Improve this Doc View SourceEquals(TimeValue)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TimeValue other)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeValue | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the current object is equal to the other parameter; otherwise, false. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | A hash code for the current object. |
Operators
| Improve this Doc View SourceEquality(TimeValue, TimeValue)
Equals comparison operator.
Declaration
public static bool operator ==(TimeValue left, TimeValue right)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeValue | left | The left value for the comparison. |
| TimeValue | right | The right value for the comparison. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the left object is equal to the right object; otherwise, false. |
Inequality(TimeValue, TimeValue)
Not equals comparison operator.
Declaration
public static bool operator !=(TimeValue left, TimeValue right)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeValue | left | The left value for the comparison. |
| TimeValue | right | The right value for the comparison. |
Returns
| Type | Description |
|---|---|
| System.Boolean | false if the left object is equal to the right object; otherwise, true. |