We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c54847 commit d9abb8fCopy full SHA for d9abb8f
spotiplex/main.py
@@ -1,6 +1,7 @@
1
"""Init for Typer app/main functions."""
2
3
import sys
4
+from time import perf_counter
5
6
import typer
7
from loguru import logger
@@ -34,8 +35,12 @@ def generate_env() -> None:
34
35
@app.command()
36
def sync_manual_lists() -> None:
37
"""Syncs all playlists specified in config file."""
38
+ start = perf_counter()
39
sp_instance = sp_module.Spotiplex(lidarr=False, playlist_id=None)
40
sp_instance.run()
41
+ stop = perf_counter()
42
+ print("Elapsed time:", stop, start)
43
+ print("Elapsed time during the whole program in seconds:", stop - start)
44
45
46
# Uncomment and complete this function if needed in the future
0 commit comments