On hills or on the flat, I suggest you time them. It's easy to overestimate the time you are spending at close to maximum effort.
It doesn't much matter whether you do them on hills or the flat as far as boosting your fitness is concerned. Obviously if you are out of the saddle a lot of the time you use different muscle groups, so use a mix of standing and seated.