The past perfect continuous and past continuous tenses are both used to talk about actions or situations that were ongoing in the past. The past continuous simply shows continuity, while the past perfect continuous emphasizes the duration of a past activity or state, mainly used to indicate how long a past action was happening.