Initializes a new instance of the Timeout class as an absolute or relative timeout given
the number of seconds and nanoseconds.
Namespace:
Quanser.Common
Assembly:
Quanser.Common (in Quanser.Common.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ seconds As Long, _ nanoseconds As Integer, _ isAbsolute As Boolean _ ) |
C# |
---|
public Timeout( long seconds, int nanoseconds, bool isAbsolute ) |
Visual C++ |
---|
public: Timeout( long long seconds, int nanoseconds, bool isAbsolute ) |
JavaScript |
---|
Quanser.Common.Timeout = function(seconds, nanoseconds, isAbsolute); |
Parameters
- seconds
- Type: System..::.Int64
The number of seconds. This parameter may be negative for relative timeouts. If it is negative then the nanoseconds parameter should also be negative.
- nanoseconds
- Type: System..::.Int32
The number of nanoseconds. This parameter may be negative for relative timeouts. If it is negative then the seconds parameter should also be negative. The magnitude of the number of nanoseconds must lie between 0 and 999999999.
- isAbsolute
- Type: System..::.Boolean
Whether the timeout is absolute or relative. Set this value to true for an absolute timeout and to false for a relative timeout.
Remarks
This constructor is called to initialize an absolute or relative timeout given the number of seconds and
nanoseconds. This constructor allows for a greater numeric range than the Timeout(Double)
method and also allows the timeout to be absolute.