The Perfect Continuous tenses

The Perfect Continuous tenses give the idea that one event is in progress immediately before, up to, until another time or event. These tenses are used to express the duration of the first  event.
FORM: have + been + -ing (present participle)
MEANING: The perfect progressive tenses give the idea that one event is in progress immediately before, up to, until another time or event. The tenses are used to express the duration of the first event.

Present Perfect Progressive

Picture

I have been studying for two hours.
Event in progress: studying.
When? Before now, up to now.
How long? For two hours.

Past Perfect Progressive

Picture

I had been studying for two hours before my friend came.
Event in progress: studying.
When? Before another event in the past.
How long? For two hours.

Future Perfect Progressive

Picture

I will have been studying for two hours by the time you arrive.
Event in progress: studying.
When? Before another event in the future.
How long? For two hours.