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

This commit is contained in:
Joe Bowser 2012-05-29 14:58:32 -07:00
parent 7d0cc5837d
commit ca1a322c76

View File

@ -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];