Can Someone Help Me?

Sorry if this has been asked but I want to make sure but how long does your sim have to work out to get thinner and more muscular and also does the food they eat affect their body weight? Because I always have my sims cook gourmet food lol