Console time tracker with ncurses and threads