diff options
author | Elliott Hughes <enh@google.com> | 2015-01-09 15:27:28 -0800 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2015-10-19 12:16:41 -0700 |
commit | 4c4ae39dece89336f82c9467094c55816beb0bac (patch) | |
tree | a07c881bc9483cc250cab007ffe7b074398abaf4 | |
parent | d126ce64b401af51402f003e95a753e4ee1df0b1 (diff) | |
download | android_hardware_samsung-4c4ae39dece89336f82c9467094c55816beb0bac.tar.gz android_hardware_samsung-4c4ae39dece89336f82c9467094c55816beb0bac.tar.bz2 android_hardware_samsung-4c4ae39dece89336f82c9467094c55816beb0bac.zip |
We have POSIX clocks.
We're probably not running the RIL on a Mac.
Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016
-rw-r--r-- | ril/libril/ril_event.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ril/libril/ril_event.cpp b/ril/libril/ril_event.cpp index 9d2954e..6bdf59d 100644 --- a/ril/libril/ril_event.cpp +++ b/ril/libril/ril_event.cpp @@ -95,14 +95,10 @@ static void dump_event(struct ril_event * ev) static void getNow(struct timeval * tv) { -#ifdef HAVE_POSIX_CLOCKS struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); tv->tv_sec = ts.tv_sec; tv->tv_usec = ts.tv_nsec/1000; -#else - gettimeofday(tv, NULL); -#endif } static void init_list(struct ril_event * list) |