# How to show connected time?

**URL:** <https://devforum.zoom.us/t/how-to-show-connected-time/43645>\
**Category:** macOS\
**Created:** [February 18, 2021, 6:10am UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645 "2021-02-18T06:10:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [February 18, 2021, 6:10am UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645/1 "2021-02-18T06:10:17Z")

</div>

![IMG_7C5BE18AC908-1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/5/25b9844ad1b8fc2844c65e093f9d6c8682c319dd.jpeg)

@jon.zoom I see in the settings of the Zoom Client that I can show connected time. Is there a call for this and if not may I ask you to request it?

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 18, 2021, 6:05pm UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645/2 "2021-02-18T18:05:31Z")

</div>

Hi @tmiskiew, thanks for the post.

While the SDK does not have a direct interface for this, it would be very straightforward to determine this. You would simply need to make note of the time you receive the [`onMeetingStatusChange`](https://marketplacefront.zoom.us/sdk/meeting/macos/protocol_zoom_s_d_k_meeting_service_delegate_01-p.html#a88feaf6052024bfbc155c2b0c82095fc) callback with a status of `ZoomSDKMeetingStatus_InMeeting` and subtract that value from the current time each time you would like to access the elapsed meeting time.

Thanks!

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [February 18, 2021, 6:16pm UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645/3 "2021-02-18T18:16:31Z")

</div>

Great idea, thanks! We’ll try it.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 18, 2021, 8:11pm UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645/4 "2021-02-18T20:11:01Z")

</div>

Great! Please let me know if you run into any issues with this approach and we can explore other possibilities. 🙂

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [February 24, 2021, 9:20pm UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645/5 "2021-02-24T21:20:12Z")

</div>

Works however when you join a break out room the clock starts counting from the beginning.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 24, 2021, 11:16pm UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645/6 "2021-02-24T23:16:41Z")

</div>

Hi @tmiskiew,

Yes, breakout rooms certainly present and interesting edge case for this. The reason you are seeing the clock reset after joining a breakout room from this approach is because breakout rooms are technically separate meetings from the main meeting. As a result, joining a breakout room triggers the same callback you would receive when you first join a regular meeting.

If you do not wish to track the duration of the breakout rooms separately, you could add some basic state management to your application to ensure that the meeting’s start time is only written to once for each call to join/start a meeting.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 27, 2021, 9:16am UTC](https://devforum.zoom.us/t/how-to-show-connected-time/43645/7 "2021-03-27T09:16:42Z")

</div>

Closed on March 27, 2021, 9:16am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
