update time counting methode