8

I am writing an application that will require me to sync the time on a large number of iPhones accurately (to within a fraction of a second). As far as I can tell, access to the time function of the GPS is not available. If I sync over the Internet, then the biggest problem is network latency. The delay before the answer to a request is received can be estimated to be half the round trip - but how accurate can I expect this to be? Would it be worthwhile sending multiple requests and averaging or is there another better way of synchronising time?

Casebash
  • 114,675
  • 90
  • 247
  • 350

1 Answers1

4

Try implementing Marzullo's algorithm, as notably used in NTP.

David
  • 2,947
  • 1
  • 25
  • 19