How to ensure epoch time on phone and sensor are in sync?
I'm having a bit of trouble understanding how to accomplish what I'm looking for from the tutorials.
The setup we would have would be the setup described in 2.2.1 (1 sensor + 1 app).
I need to verify that we can do something like this:
1. User presses start button in app. Epoch time IN THE APP is recorded as 1547578388000.
2. Sensor detects acceleration starts, epoch time ON THE SENSOR is recorded as 1547578388150.
3. The difference is recorded as 150 milliseconds.
However, the concern is that what if the epoch time "IN THE APP" is different than the epoch time "ON THE SENSOR".
One solution would be for step 1 to be changed to: 1. User presses start button in app. Epoch time ON THE SENSOR is recorded as 1547578388000. But I don't know if that is possible, or if there is another way to ensure that we can accurately compare the two Epoch times (when button is pressed & when acceleration begins).