"Having" is not a gerund.I wonder whether there is such a thing called tense of gerund.
I do not know because I seldom see them in books or articles.
I guess there are two types of tenses of gerund.
1. simple tense:
(active) Reading is my favourite hobby.
(passive) Being cheated disheartened me.
2. perfect tense:
(active) Having read through my favourite book gives my contentment.
(passive) Having been cheated dejected me.
all gerunds above are the subjects of the sentences.
Is my guess correct ? Thanks no end