projects
/
GitHub
/
LineageOS
/
android_hardware_samsung.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d126ce6
)
We have POSIX clocks.
author
Elliott Hughes
<enh@google.com>
Fri, 9 Jan 2015 23:27:28 +0000
(15:27 -0800)
committer
Ethan Chen
<intervigil@gmail.com>
Mon, 19 Oct 2015 19:16:41 +0000
(12:16 -0700)
We're probably not running the RIL on a Mac.
Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016
ril/libril/ril_event.cpp
patch
|
blob
|
blame
|
history
diff --git
a/ril/libril/ril_event.cpp
b/ril/libril/ril_event.cpp
index 9d2954e457a5c79158d88327f431529bfb971585..6bdf59d6c21bbf83361bd5e7474ca9123ca7f0d8 100644
(file)
--- 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)