This commit is contained in:
Dennis Guse
2021-01-09 17:41:50 +01:00
parent e990b413cd
commit 1d46981717
3 changed files with 3 additions and 11 deletions
@@ -140,10 +140,6 @@ public class TrackPoint {
return createSegmentEndWithTime(Instant.now());
}
public static TrackPoint createSegmentEndWithTime(@NonNull TrackPoint trackPoint) {
return createSegmentEndWithTime(trackPoint.getTime());
}
public static TrackPoint createSegmentEndWithTime(Instant time) {
return new TrackPoint(Type.SEGMENT_END_MANUAL, time);
}
@@ -29,10 +29,6 @@ public class UnitConversions {
// TODO Use int instead of long.
public static final long ONE_SECOND_US = UnitConversions.S_TO_MS * 1000;
public static final long ONE_SECOND_MS = UnitConversions.S_TO_MS;
public static final long ONE_MINUTE_MS = (long) (UnitConversions.MIN_TO_S * UnitConversions.S_TO_MS);
public static final long ONE_HOUR_MS = 60 * ONE_MINUTE_MS;
public static final long ONE_DAY_MS = 24 * ONE_HOUR_MS;
public static final long ONE_WEEK_MS = 7 * ONE_DAY_MS;
// multiplication factor to convert milliseconds to seconds
public static final double MS_TO_S = 1d / S_TO_MS;