- From: Rijubrata Bhaumik via GitHub <sysbot+gh@w3.org>
- Date: Wed, 11 May 2016 07:44:21 +0000
- To: public-device-apis@w3.org
Atleast on Android side, SensorEvent provides timestamps.
``` java
public void onSensorChanged(SensorEvent event) {
if (event.sensor.getType() == Sensor.TYPE_LIGHT) {
mLastUpdate.illuminance = event.values[0];
mLastUpdate.timestamp = event.timestamp;
}
}
```
--
GitHub Notification of comment by riju
Please view or discuss this issue at
https://github.com/w3c/sensors/issues/105#issuecomment-218385986 using
your GitHub account
Received on Wednesday, 11 May 2016 07:44:23 UTC