getElapsedRealtimeNanos

open fun getElapsedRealtimeNanos(@NonNull location: @NonNull Location): Long

Deprecated

Call getElapsedRealtimeNanos directly.

Return the time of this fix, in nanoseconds of elapsed real-time since system boot.

This value can be reliably compared to SystemClock.elapsedRealtimeNanos(), to calculate the age of a fix and to compare location fixes. This is reliable because elapsed real-time is guaranteed monotonic for each system boot and continues to increment even when the system is in deep sleep (unlike getTime().

All locations generated by the LocationManager are guaranteed to have a valid elapsed real-time.