Well, looking at the Hobbs or your watch would give you a pretty good idea of how long you were in the soup, but it isn't very practical at all!. Most planes that I have flown have put the Hobbs meter on the opposite side of where the pilot is sitting... don't know why?! But the last thing you want to be doing when you are entering or leaving the clouds, or on an approach low to the ground, is moving your head around to look at the Hobbs meter. Keep your eyes on your instruments, or else you run the risk of getting vertigo (no matter how experienced you might think you are).
The easiest and most practical way I have found, is to determine what percentage of the flight you were on the instruments during the flight and then log this percentage of the total flight as "instrument" time. Resist the urge to log 0.1 every time you punch through a cloud. If you do so, it could be considered falsification of pilot records. Yeah, it would be very difficult for anyone to find this out, but it says alot about your character.
Fly safe!
I