Skip to content

Commit

Permalink
Adding perf counter
Browse files Browse the repository at this point in the history
  • Loading branch information
cmathews393 committed Sep 2, 2024
1 parent 3c54847 commit d9abb8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spotiplex/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Init for Typer app/main functions."""

import sys
from time import perf_counter

import typer
from loguru import logger
Expand Down Expand Up @@ -34,8 +35,12 @@ def generate_env() -> None:
@app.command()
def sync_manual_lists() -> None:
"""Syncs all playlists specified in config file."""
start = perf_counter()
sp_instance = sp_module.Spotiplex(lidarr=False, playlist_id=None)
sp_instance.run()
stop = perf_counter()
print("Elapsed time:", stop, start)
print("Elapsed time during the whole program in seconds:", stop - start)


# Uncomment and complete this function if needed in the future
Expand Down

0 comments on commit d9abb8f

Please sign in to comment.