The perfect continuous reter to actions that begin before and continue up to another time or event.
The duration of the first action is often given.
The second time or event is either given or (especially in the case of the present perfect continuous) understood