update time taken