Skip to content

Instantly share code, notes, and snippets.

@linnil1
Created October 24, 2022 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linnil1/615381e8f9569e8ca49773106b958ca5 to your computer and use it in GitHub Desktop.
Save linnil1/615381e8f9569e8ca49773106b958ca5 to your computer and use it in GitHub Desktop.
Show the current time per 10 seconds to trick idle detecting
import time
while True:
print(f"{time.ctime():30s}", end="")
print("\b" * 30, end="", flush=True)
time.sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment