use timer to get the current system time every second