Closed and3md closed 5 years ago
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
fpgettimeofday
clock_gettime
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 useclock_gettime
More info: https://stackoverflow.com/questions/3832097/how-to-get-the-current-time-in-native-android-code