summaryrefslogtreecommitdiffstats
path: root/opengl/specs
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2013-04-26 11:17:57 -0700
committerAndy McFadden <fadden@android.com>2013-04-29 15:41:40 -0700
commit0e775697fb12d3f9c577c7758a362103c2194519 (patch)
tree28a3c595a316a1a1ad89908b2450499fa8e6c6b0 /opengl/specs
parent5b6ebd716c2bae657898562997ebb3b7d7b8a575 (diff)
downloadframeworks_native-0e775697fb12d3f9c577c7758a362103c2194519.zip
frameworks_native-0e775697fb12d3f9c577c7758a362103c2194519.tar.gz
frameworks_native-0e775697fb12d3f9c577c7758a362103c2194519.tar.bz2
Recommend different time source
We were recommending SystemClock#uptimeMillis() from Java code, but millisecond resolution is a little coarse. We don't have an appropriate call in SystemClock, so use System.nanoTime() instead. Bug 8733179 Change-Id: Ifb85a03eabf7ff168966adcb5ed5914bbf3884b2
Diffstat (limited to 'opengl/specs')
-rw-r--r--opengl/specs/EGL_ANDROID_presentation_time.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/specs/EGL_ANDROID_presentation_time.txt b/opengl/specs/EGL_ANDROID_presentation_time.txt
index 03370ed..09b3938 100644
--- a/opengl/specs/EGL_ANDROID_presentation_time.txt
+++ b/opengl/specs/EGL_ANDROID_presentation_time.txt
@@ -107,8 +107,8 @@ Issues
presentation time when an absolute time is needed be queried on Android?
RESOLVED: The current clock value can be queried from the Java
- SystemClock#uptimeMillis() method or from the native clock_gettime
- function by passing CLOCK_MONOTONIC as the clock identifier.
+ System.nanoTime() method, or from the native clock_gettime function by
+ passing CLOCK_MONOTONIC as the clock identifier.
Revision History