incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: Changing from currentTimeMillis to nanoTime, we need precision on Android 2.3
Date Tue, 29 May 2012 21:58:53 GMT
Updated Branches:
  refs/heads/master 7d0cc5837 -> ca1a322c7


Changing from currentTimeMillis to nanoTime, we need precision on Android 2.3


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/ca1a322c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/ca1a322c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/ca1a322c

Branch: refs/heads/master
Commit: ca1a322c7697bc2f927f4d14de309bc203a5f6ff
Parents: 7d0cc58
Author: Joe Bowser <bowserj@apache.org>
Authored: Tue May 29 14:58:32 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Tue May 29 14:58:32 2012 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/AccelListener.java      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ca1a322c/framework/src/org/apache/cordova/AccelListener.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/AccelListener.java b/framework/src/org/apache/cordova/AccelListener.java
index 9e19d75..83a322d 100755
--- a/framework/src/org/apache/cordova/AccelListener.java
+++ b/framework/src/org/apache/cordova/AccelListener.java
@@ -223,7 +223,7 @@ public class AccelListener extends Plugin implements SensorEventListener
{
         if (this.accuracy >= SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM) {
 
             // Save time that event was received
-            this.timestamp = System.currentTimeMillis();
+            this.timestamp = System.nanoTime();
             this.x = event.values[0];
             this.y = event.values[1];
             this.z = event.values[2];


Mime
View raw message