You will know the fish is done cooking when it easily releases from the pan. If it sticks, it's not quite ready. Give it more time. Use a food thermometer to check the temperature; the safe internal temperature for mahi-mahi is 137° F (58° C).