Move Timer class to util module
MODIFY
plextraktsync/decorators/time_limit.py
plextraktsync/decorators/time_limit.py
from functools import wraps
from plextraktsync.config import TRAKT_POST_DELAY
-from plextraktsync.timer import Timer
+from plextraktsync.util.Timer import Timer
timer = Timer(TRAKT_POST_DELAY)

MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -279,7 +279,7 @@ def queue(self):
@cached_property
def batch_delay_timer(self):
- from plextraktsync.timer import Timer
+ from plextraktsync.util.Timer import Timer
return Timer(self.run_config.batch_delay) if self.run_config.batch_delay else None

MODIFY
plextraktsync/queue/BackgroundTask.py
plextraktsync/queue/BackgroundTask.py
from queue import SimpleQueue
from typing import Any
- from plextraktsync.timer import Timer
+ from plextraktsync.util.Timer import Timer
class BackgroundTask:

RENAME
plextraktsync/timer.py
plextraktsync/util/Timer.py
MODIFY
tests/test_timer.py
tests/test_timer.py
from contextlib import contextmanager
from time import perf_counter, sleep
-from plextraktsync.timer import Timer
+from plextraktsync.util.Timer import Timer
@contextmanager

Move Timer class to util module