The present invention relates to a cooking apparatus, preferably including a plurality of heating plates for contact cooking. The cooking time is determined by selecting a desired degree of cooking of the food. After estimating the surface area occupied by the food on one of the heating plates, said cooking time is calculated on the basis of the desired degree of cooking, the thickness of the food, and the surface area occupied by the food.