# FMS - How to Detect Latency

**URL:** <https://forum.kirupa.com/t/fms-how-to-detect-latency/321497>\
**Category:** flash\
**Created:** [April 21, 2011, 6:59am UTC](https://forum.kirupa.com/t/fms-how-to-detect-latency/321497 "2011-04-21T06:59:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunsoni\_sps](https://avatars.discourse-cdn.com/v4/letter/v/a3d4f5/32.png) [@varunsoni\_sps](https://forum.kirupa.com/u/varunsoni_sps)\
**Post date:** [April 21, 2011, 6:59am UTC](https://forum.kirupa.com/t/fms-how-to-detect-latency/321497/1 "2011-04-21T06:59:27Z")

</div>

Hi,

I need to calculate the latency means time difference between the two user machines the scenario is:

1. App 1 publishes stream
2. App 2 play the stream published by App 1

Now in App 2 I need to show the time difference between the App 2 and App 1 time.  
Say if current time on App 1 is 10:46:30 and on App 2 it is 10:50:20 then need to display the difference. How to send the time value to App 2 from App 1 as time zones for the two users may be different.

Any help appreciated.

Thanks
