다음을 통해 공유


GnssClock.HardwareClockDiscontinuityCount Property

Definition

Gets count of hardware clock discontinuities.

public int HardwareClockDiscontinuityCount { [Android.Runtime.Register("getHardwareClockDiscontinuityCount", "()I", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getHardwareClockDiscontinuityCount", "()I", "", ApiSince=24)>]
member this.HardwareClockDiscontinuityCount : int

Property Value

Attributes

Remarks

Gets count of hardware clock discontinuities.

When this value stays the same, vs. a value in a previously reported GnssClock, it can be safely assumed that the TimeNanos value has been derived from a clock that has been running continuously - e.g. a single continuously powered crystal oscillator, and thus the (FullBiasNanos + BiasNanos) offset can be modelled with traditional clock bias &amp; drift models.

Each time this value changes, vs. the value in a previously reported GnssClock, that suggests the hardware clock may have experienced a discontinuity (e.g. a power cycle or other anomaly), so that any assumptions about modelling a smoothly changing (FullBiasNanos + BiasNanos) offset, and a smoothly growing (TimeNanos) between this and the previously reported GnssClock, should be reset.

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

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