diff options
author | Elliott Hughes <enh@google.com> | 2015-01-09 16:16:53 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-01-09 16:17:46 -0800 |
commit | 76f0a84f6ac27669d77260e83f17cf6ba5b253ba (patch) | |
tree | 240ba0e15d64f1c26700fd07bb8c1275fb2fd33f /libpixelflinger | |
parent | 4c6c6d1c7ed7d8481d717f949c18657efa5533af (diff) | |
download | system_core-76f0a84f6ac27669d77260e83f17cf6ba5b253ba.zip system_core-76f0a84f6ac27669d77260e83f17cf6ba5b253ba.tar.gz system_core-76f0a84f6ac27669d77260e83f17cf6ba5b253ba.tar.bz2 |
Linux always has POSIX clocks available.
pixelflinger doesn't have to run on the Mac, but the Condition
code might.
Change-Id: Ib4e9b4daa6e848ffd5742959427b172d45f08e3c
Diffstat (limited to 'libpixelflinger')
-rw-r--r-- | libpixelflinger/pixelflinger.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libpixelflinger/pixelflinger.cpp b/libpixelflinger/pixelflinger.cpp index ea5bc8e..fd449b2 100644 --- a/libpixelflinger/pixelflinger.cpp +++ b/libpixelflinger/pixelflinger.cpp @@ -727,18 +727,10 @@ void ggl_enable_texture2d(context_t* c, int enable) int64_t ggl_system_time() { -#if defined(HAVE_POSIX_CLOCKS) struct timespec t; t.tv_sec = t.tv_nsec = 0; clock_gettime(CLOCK_THREAD_CPUTIME_ID, &t); return int64_t(t.tv_sec)*1000000000LL + t.tv_nsec; -#else - // we don't support the clocks here. - struct timeval t; - t.tv_sec = t.tv_usec = 0; - gettimeofday(&t, NULL); - return int64_t(t.tv_sec)*1000000000LL + int64_t(t.tv_usec)*1000LL; -#endif } // ---------------------------------------------------------------------------- |