update time on the titlebar every 1 second