Workaround: Clock.systemUTC() seems to be not monotonic.

Introduced in 25e590da02
This commit is contained in:
Dennis Guse
2022-01-06 20:12:00 +01:00
parent 1163f74b98
commit 9bde8944b9
@@ -208,7 +208,9 @@ public class TrackStatistics {
@VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
public void addMovingTime(Duration time) {
if (time.isNegative()) {
throw new RuntimeException("Moving time cannot be negative");
// Needs implementation of a monotonic Clock #800
// throw new RuntimeException("Moving time cannot be negative");
return;
}
movingTime = movingTime.plus(time);
}