Crème pâtissière must be cooked for at least 1.5 minutes since the first bubble of a boil. This time gives the right consistency and guarantees that the egg yolks are perfectly cooked.