Temporally synchronize two iOS devices over Multipeer Connectivity in Swift -


i temporally synchronize 2 ios devices using multipeer connectivity (so should work both wifi , bluetooth) in swift.

ideally, need synchronisation within 0.03 ms, 0.3 ms acceptable.

so far, playing sound device 1 , record device 2, measuring time moment when devices connected each other on multipeer connectivity.

unfortunately, not provide accurate temporal synchronization needed application.

just send current time 1 device , compare on other side when message received.

preparing message:

// value send     let date = nsdate() 

on message received code:

let interval = nsdate.timeintervalsincedate(thedate) 

that interval time passed since initial date created on other device.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -