GnssClock.TimeNanos Property

Definition

Gets the GNSS receiver internal hardware clock value in nanoseconds.

public long TimeNanos { [Android.Runtime.Register("getTimeNanos", "()J", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getTimeNanos", "()J", "", ApiSince=24)>]
member this.TimeNanos : int64

Property Value

Attributes

Remarks

Gets the GNSS receiver internal hardware clock value in nanoseconds.

This value is expected to be monotonically increasing while the hardware clock remains powered on. For the case of a hardware clock that is not continuously on, see the #getHardwareClockDiscontinuityCount field. The GPS time can be derived by subtracting the sum of #getFullBiasNanos() and #getBiasNanos() (when they are available) from this value. Sub-nanosecond accuracy can be provided by means of #getBiasNanos().

The error estimate for this value (if applicable) is #getTimeUncertaintyNanos().

Java documentation for android.location.GnssClock.getTimeNanos().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to