This process is known as acclimatization and generally takes 1-3 days at that altitude. For example, if you hike to 10,000 feet (3,048 meters), and spend several days at that altitude, your body acclimatizes to 10,000 feet (3,048 meters).