Returns the current absolute time.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GetCurrentTime As Timeout
C#
public static Timeout GetCurrentTime()
Visual C++
public:
static Timeout^ GetCurrentTime()
JavaScript
Quanser.Common.Timeout.getCurrentTime = function();

Return Value

Returns the current time as an absolute Timeout instance.

Remarks

This method returns the current absolute time. Absolute time is measured from an arbitrary, fixed, date and time in the past (likely the time since the last reboot).

Exceptions

ExceptionCondition
Quanser.Common..::.GenericException A GenericException is thrown if the absolute time cannot be retrieved from the underlying operating system. Such an exception indicates an incompatible hardware configuration or a catastrophic system failure. Both situations are highly unlikely.

See Also