It's less a matter of how long than to what temperature. The important thing is to cook the fish until the internal temperature reaches 140°F-145°F.