Skip to content

Commit

Permalink
issue #110
Browse files Browse the repository at this point in the history
Implement halt() procedure to stop the program execution immediately
  • Loading branch information
pozitronik committed Feb 29, 2024
1 parent 15e460f commit 217946f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sinner/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,7 @@ def suggest_temp_dir(initial: str | None = None) -> str:
def seconds_to_hmsms(seconds: float) -> str:
time_format = datetime.utcfromtimestamp(seconds).strftime("%H:%M:%S.%f")
return time_format[:-3] # Remove the last three digits to get milliseconds


def halt() -> None:
os._exit(0)

0 comments on commit 217946f

Please sign in to comment.