40 minutes is ok but it depends on how many times per week ur doing this and also the intensity at which ur going, I personaly usea bike for cardio and lose much less muscle then i would or did using an elyptical.
be sure take ur glutamine, high protien, and cut out sugars, fat intake is always ok in my opinion