Skip to content

Instantly share code, notes, and snippets.

@seenimohamed
Created March 31, 2023 07:24
Show Gist options
  • Save seenimohamed/c5dde9afaf37616b45b326223ad1476a to your computer and use it in GitHub Desktop.
Save seenimohamed/c5dde9afaf37616b45b326223ad1476a to your computer and use it in GitHub Desktop.
Live timer in python
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