From c6d9a2a4be2cfd3b5855c34593c58e80bc908299 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 16 Apr 2023 17:30:32 +0200 Subject: [PATCH] removed unneeded dependencies --- stopwatch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stopwatch.py b/stopwatch.py index 3984a09..db8a1e6 100755 --- a/stopwatch.py +++ b/stopwatch.py @@ -1,7 +1,8 @@ #!/bin/env python3 -from time import localtime, sleep, struct_time, time +import time import datetime import sys +import time class stopwatch: @@ -17,7 +18,7 @@ class stopwatch: text1 = ("elapsed:\t%s" % elapsed) sys.stdout.write('\r' + str(text0+"\t\t"+text1) + "\t" * 3) sys.stdout.flush() - sleep(1) + time.sleep(1) def main(): try: