--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
> Unfortunately, this uses some android-specific magic.
When I look at the .cpp file you posted, it looks like there are two possible
sources of failure in elapsedRealtime(): (1) /dev/alarm doesn't exist, and (2)
the ioctl(ANDROID_ALARM_GET_TIME(ANDROID_ALARM_ELAPSED_REALTIME)) might fail. In
those cases the system clock (which the user can change) is used as a fallback.
I'm wondering if I can depend on /dev/alarm and the ioctl being in place and
working across the hundreds of Android devices out there. Is this something that
everyone's going to implement, or is this something that various manufacturers
have decided to ignore?
Thanks,
Rick