A clock based on curses in C