SensorEvent.timestamp to absolute (utc) timestamp?

前端 未结 1 1186
太阳男子
太阳男子 2020-12-15 07:23

I question myself what the timestamp in SensorEvent.timestamp means. Numbers like 3548712982000 occur. It is not plausible for anything: nanoseconds/milliseconds since 1970

1条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 07:37

    Just a few seconds after this question on SO I found the answer:

    See comment #18 of this issue where it's said that these are nanoseconds since boot (SystemClock.elapsedRealtimeNanos()).

    The android documentation definitively needs an update. The doc issue has been recently reported again, feel free to star it.

    0 讨论(0)
提交回复
热议问题