Open ftabashir opened 4 years ago
In KalmanLocationService.onSensorChanged elapsed nanos was retrieved like this:
KalmanLocationService.onSensorChanged
long now = android.os.SystemClock.elapsedRealtimeNanos();
While we have it already in SensorEvent.timestamp.
SensorEvent.timestamp
Is there any issue in using SensorEvent.timestamp which you avoid to use?
Yes. I'm not sure why, but seems, like those events use different clock sources. I wanted to be sure, that we use same clock source for each event type.
In
KalmanLocationService.onSensorChanged
elapsed nanos was retrieved like this:While we have it already in
SensorEvent.timestamp
.Is there any issue in using
SensorEvent.timestamp
which you avoid to use?