One way to tell when the fish is done is when it flakes easily with a fork. The best way to be certain though is to test it with a thermometer. The cod should reach an internal temperature of 145°F and should be an opaque white color on the inside.