diff --git a/src/main/java/com/atatctech/packages/log/Log.java b/src/main/java/com/atatctech/packages/log/Log.java index 8eb092c..fe40143 100644 --- a/src/main/java/com/atatctech/packages/log/Log.java +++ b/src/main/java/com/atatctech/packages/log/Log.java @@ -144,7 +144,7 @@ public long getDuration(@NotNull Unit unit) { } public long getDuration() { - return getDuration(this); + return getDuration(new Time()); } public @NotNull Milliseconds getDurationAsGap() { @@ -156,7 +156,7 @@ public long getDuration(@NotNull Time time, @NotNull Unit unit) { } public long getDuration(@NotNull Time time) { - return Math.abs(time.getBaseTime() - getBaseTime()); + return calculateDuration(this, time); } public @NotNull TimePeriod getDurationAsGap(@NotNull Time time, @NotNull Unit unit) {