Initializes a new instance of the Timeout class as a relative timeout given a floating-point value for the number of seconds.

Namespace:  Quanser.Common
Assembly:  Quanser.Common (in Quanser.Common.dll)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	seconds As Double _
)
C#
public Timeout(
	double seconds
)
Visual C++
public:
Timeout(
	double seconds
)
JavaScript
Quanser.Common.Timeout = function(seconds);

Parameters

seconds
Type: System..::.Double
The number of seconds as a floating-point value.

Remarks

This constructor is called to initialize a relative timeout given the number of seconds as a floating-point value. Since floating-point values are often more convenient, this method provides a conversion mechanism to get the corresponding Timeout. Note, however, that the Timeout class can represent a greater range of values than a double-precision floating-point value, which is particularly important for storing absolute time.

See Also