check time every 10 seconds