Created
March 31, 2023 07:24
-
-
Save seenimohamed/c5dde9afaf37616b45b326223ad1476a to your computer and use it in GitHub Desktop.
Live timer in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import time | |
print("Live timer") | |
while True : | |
print('\r', '{} '.format(str(datetime.now()).split(".")[0]), end='', flush=True) | |
time.sleep(1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment