I have a simple data field in which I get Activity.info.elapsedTime in the compute() method and use it in calculations. In the end I need the elapsed time between the start of the activity and the end of the activity when it is stopped, and that time is used to calculate a value saved as a FIT session data value.
However, it looks like the last value of Activity.info.elapsedTime that I get includes the time between when the activity is stopped and when it is saved.
Is this a bug? Is there any way to get the elapsed time and not include the time between the stop and the save?