timeUpdate with time as parameter