Skip to content

Commit

Permalink
Slight optimizations to TIMEConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesalvo committed Jan 10, 2025
1 parent fa39bce commit d7b4ef7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions OWLSharp/Extensions/TIME/Abstractions/TIMEConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ internal static void ClockForwardToPositionalTRSOrigin(double secondsToConsume,
while (secondsToConsume >= calendarTRS.Metrics.SecondsInMinute)
{
secondsToConsume -= calendarTRS.Metrics.SecondsInMinute;
positionTRSOrigin.Second %= calendarTRS.Metrics.SecondsInMinute;
positionTRSOrigin.Minute++;
if (positionTRSOrigin.Minute < calendarTRS.Metrics.MinutesInHour)
continue;
Expand Down Expand Up @@ -337,7 +336,6 @@ internal static void ClockBackwardFromPositionalTRSOrigin(double secondsToConsum
while (secondsToConsume < 0)
{
secondsToConsume += calendarTRS.Metrics.SecondsInMinute;
positionTRSOrigin.Second %= calendarTRS.Metrics.SecondsInMinute;
positionTRSOrigin.Minute--;
if (positionTRSOrigin.Minute >= 0)
continue;
Expand Down

0 comments on commit d7b4ef7

Please sign in to comment.