VFR does not equal VMC, IFR does not equal IMC! You can be flying IFR and be in VMC, in which case you would not log any instrument flight time. In some parts of the world you can spend months without flying in IMC even though every flight you do is on an IFR plan.