time taken updating in firebase