Probably you can use something like this. You just have to adjust it for your needs.
import curses
import time
scr = curses.initscr()
while True:
try:
scr.addstr(0, 0, str(time.time()))
scr.refresh()
except KeyboardInterrupt: break
curses.endwin()