Skip to content

elapsed realtime nanos

Alexander Sokol edited this page Nov 19, 2019 · 1 revision

core / at.specure.location / LocationInfo / elapsedRealtimeNanos

elapsedRealtimeNanos

var elapsedRealtimeNanos: Long

Return the time of this fix, in 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().

Clone this wiki locally