observe time and update graph accordingly