Are you having to solely use your instruments to navigate or are you navigating visually? If you're navigating visually, then you're obviously not instrument flying, therefore you wouldn't log instrument time just because you were around a bunch of clouds. Of course then again, I'm not a pilot, the above is simply a common sense answer.