Fix Android time issue #20

Closed
and3md wants to merge 1 commit from android_gettime_fix into master
and3md commented 2019-08-20 19:49:20 +00:00 (Migrated from github.com)

Android has three clocks (https://developer.android.com/reference/android/os/SystemClock.html). And clock used by fpgettimeofday can leaps forward or backward. We had this issue in CGE too (https://github.com/castle-engine/castle-engine/pull/132). The solution is to use clock_gettime More info: https://stackoverflow.com/questions/3832097/how-to-get-the-current-time-in-native-android-code

Android has three clocks (https://developer.android.com/reference/android/os/SystemClock.html). And clock used by `fpgettimeofday` can leaps forward or backward. We had this issue in CGE too (https://github.com/castle-engine/castle-engine/pull/132). The solution is to use `clock_gettime` More info: https://stackoverflow.com/questions/3832097/how-to-get-the-current-time-in-native-android-code

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/kraft!20
No description provided.