How to capture the current timer of the meeting using the Jitsi API

Hello people,
I need to develop a functionality where the meeting would be terminated after an hour. For that, I need to capture the current duration or the timer, which is displayed in the top center part of the meeting. Can someone help me with this please?