GPX: export track statistics using TrackStatsExtensionv1.

Fixes #652.
This commit is contained in:
Dennis Guse
2021-12-03 23:59:42 +01:00
parent f8cc257895
commit 89f9f25c55
2 changed files with 18 additions and 0 deletions
@@ -203,6 +203,10 @@ public class TrackStatistics {
movingTime = movingTime.plus(time);
}
public Duration getStoppedTime() {
return totalTime.minus(movingTime);
}
/**
* Gets the average speed.
* This calculation only takes into account the displacement until the last point that was accounted for in statistics.