This commit is contained in:
Dennis Guse
2020-01-04 22:29:32 +01:00
parent b4d5eb0eec
commit 543a04dfdd
6 changed files with 119 additions and 145 deletions
@@ -27,7 +27,9 @@ public class UnitConversions {
// Time
// 1 second in milliseconds
public static final long ONE_SECOND = UnitConversions.S_TO_MS;
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);
// multiplication factor to convert milliseconds to seconds
public static final double MS_TO_S = 1d / S_TO_MS;
// multiplication factor to convert minutes to seconds