only add to the time if counter is not 0