#!/usr/bin/env python3 """Just output the current time in a loop.""" import time try: while True: print(time.ctime(), end='\r') time.sleep(0.5) except KeyboardInterrupt: print()