title: Synchronizing time between smartphone and pc/embedded device
body: <p>I have to measure and verify the latency of messages being sent wirelessly via WiFi/Bluetooth from smartphone to pc. The distance varies between 5 and 10 meters.</p>
  
  <p>Example: message sent from smartphone at time X, received and processed at time Y. Duration: 35ms.</p>
  
  <p>Since these messages are non-trivial (safety and security commands to further machines) its neccesary to synchronize the time between the smartphone and the pc to the most precise accuracy(milliseconds).</p>
  
  <p>This was an easy task using net time for two PCs connected via LAN, but I'm uncertain with smartphones using iOS/Android..</p>
  
  <p>Is it accurately enough to lets say sync both, smartphone and PC with NTP time, or do you know a better way to synchronize time between them?</p>
  
  <p>From what I read, synchronizing time with NTP provides accuracy from ~ 1 to 20 ms. But this range is too vague..</p>
  
  <p>Does anyone had similar problems?</p>