If cooking the pork in the oven, heat the oven to 425 degrees and cook for 20 minutes initially. Check the temperature and continue cooking for a few more minutes or until the internal temperature reaches 125°F. Remove the tenderloin from the oven to brush with apricot glaze, then cook for an additional 15 minutes or so, until the temperature reaches 145°F.