If you like your eggs sunny-side up, place a lid over the pan to ensure the whites will cook through without making the yolks hard. Once the whites are no longer translucent, take them off the heat.
If you like eggs over-easy, wait until the yolks are cooked but still look runny, then flip each egg with a spatula and let the other side cook for about 15 seconds. That’ll get your whites fully cooked, but keep the yolks runny. If you prefer hard yolks, then cook for a little longer.