Really, it's telling how -I- feel after a day spent in meetings. It feels wasted. I'm grumpy that I achieved nothing.
Whereas a day without any meetings, where it's head bent down, writing code, even when it involves research or looking up API docs, or going to ask questions of domain experts when interacting with other systems...feels productive. Even when some of it changes because the customer comes back and says "No no no, it should work like (X)".
Honestly, it feels more productive when the customer can instantly tell me what is wrong after the fact, than if I spend an hour up front trying to pick their brains, to then code it, and to -still- find out it's wrong. Per another thread we had here, people find it much easier to tell you what is wrong than to tell you out of the air what is right.
If you're "going long" on your productivity, collect all the data you like--but have a smoothing function between that input and the resulting metrics. That way, 20 minutes spent to gain 3 hours will look like the slight-dent-and-sharp-rise it is, not a scary better-stop-this plunge.
edit: But it's a good point as a general idea, just shouldn't be thought of as an end-all-be-all I don't think.
On the other hand, programming all day is sometimes a recipe for not learning. It might be better to spend 20 minutes learning an elegant solution rather than 5 minutes implementing a hack. But those 20 minutes are mostly spent reading rather than writing.