tags:

views:

67

answers:

1

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?

+1  A: 

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

David
See http://stackoverflow.com/questions/2269532/network-time-protocol-for-iphone for information on implementing NTP on the iPhone
Casebash