The difference between the past perfect and the past perfect continuous
In contrast with the past perfect simple tense, which emphasises the result of a completed action, the past perfect continuous focuses on the duration or the activity itself:
By then, he
had eaten
all the food.
(there was nothing left)
He put down the fork he
had been eating
with and left the table.