Using a thermometer is 100% the best way to perfectly cook fish every time and make sure it is soft and flaky (never dry).  When 125ºF internal temperature is reached, stop cooking and let it rest for 5 minutes. Without a thermometer, you can tell doneness when the cod just opaque and will easily flake apart when tested with a fork.