Click or drag to resize

SysTimeExternalNow Property

Tracks an external time source.

Namespace:  Neon.Time
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
public static DateTime ExternalNow { get; set; }

Property Value

Type: DateTime

The SysTime class is also capable of maintaining rough synchronization with an external time source. To use this feature, you'll periodically get the time from the external source and assign it to the static ExternalNow property then you can use the ExternalNow property to get and estimate of the current external time.

The local side clock will likely drift over time, resulting in a skew between the time returned by ExternalNow and the actual time at the external source. This skew can be limited by getting the external time and assigning it to ExternalNow more frequently.

Note Note
The time returned by ExternalNow is not guaranteed to be monotimically increasing since reported times may jump around as the bias between the local and external clocks are adjusted.
See Also