diff options
author | Elliott Hughes <enh@google.com> | 2015-01-09 15:27:28 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-01-09 15:27:28 -0800 |
commit | 313a350a45bd67c8328291559b318a8510171531 (patch) | |
tree | e5934dc9982572d4ae29264af18b42acd2750edd | |
parent | f34ed01f1e1935c67e153916ea27dddae4d067dc (diff) | |
download | android_hardware_ril-313a350a45bd67c8328291559b318a8510171531.tar.gz android_hardware_ril-313a350a45bd67c8328291559b318a8510171531.tar.bz2 android_hardware_ril-313a350a45bd67c8328291559b318a8510171531.zip |
We have POSIX clocks.
We're probably not running the RIL on a Mac.
Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016
-rw-r--r-- | libril/ril_event.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libril/ril_event.cpp b/libril/ril_event.cpp index 9d2954e..6bdf59d 100644 --- a/libril/ril_event.cpp +++ b/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) |