Doesn't have to do a full lap:
25.4 e)Unless he has used intermediate or wet-weather tyres during the race, each driver must use at least one set of each specification of dry-weather tyres during the race.
If his pit was before S/F then that should also count, but might be controversial!