Click or drag to resize

IObservingConditionsTimeSinceLastUpdate Method

Provides the time since the sensor value was last updated

Namespace:  ASCOM.DeviceInterface
Assembly:  ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
double TimeSinceLastUpdate(
	string PropertyName


Type: SystemString
Name of the property whose time since last update is required

Return Value

Type: Double
Time in seconds since the last sensor update for this property
MethodNotImplementedExceptionIf the sensor is not implemented.
NotConnectedExceptionIf the device is not connected and this information is only available when connected.
InvalidValueExceptionIf an invalid property name parameter is supplied.

Must Not throw a MethodNotImplementedException when the specified sensor Is implemented but must throw a MethodNotImplementedException when the specified sensor Is Not implemented.

PropertyName must be the name of one of the sensor properties specified in the IObservingConditions interface. If the caller supplies some other value, throw an InvalidValueException.

Return a negative value to indicate that no valid value has ever been received from the hardware.

If an empty string is supplied as the PropertyName, the driver must return the time since the most recent update of any sensor. A MethodNotImplementedException must not be thrown in this circumstance.

See Also