add time counting