Compares two timeouts.
Namespace:
Quanser.Common
Assembly:
Quanser.Common (in Quanser.Common.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Compare ( _
timeout As Timeout _
) As Integer |
C# |
---|
public int Compare(
Timeout timeout
) |
Visual C++ |
---|
public:
int Compare(
Timeout^ timeout
) |
JavaScript |
---|
function compare(timeout); |
Parameters
- timeout
- Type: Quanser.Common..::.Timeout
The timeout to compare with this instance. This parameter may be viewed as the
right-hand side in the comparison.
Return Value
Returns
-1 if this
Timeout instance is less than the
timeout parameter,
0 if it is equal to the
timeout parameter, and
1 if
it is greater than the
timeout parameter.
Remarks
See Also