I am trying to design a system where real-time events happen and I want to synchronise them to a clock. [NSDate date] would normally be ok but the user could c
What I know, that there is no any other method to get correct time. I would use NTP.
Network Time Protocol (NTP) is a networking protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks. More: http://en.wikipedia.org/wiki/Network_Time_Protocol
In one project I'm going to use NTP (tomorrow i quess), but I already did some research:
iOS library: https://github.com/jbenet/ios-ntp - Author notes: The implementation is not a rigorous as described in those RFCs since the goal was to improve time accuracy to with in a second, not to fractions of milliseconds.
For non-commercial project look on: www.packages.ubuntu.com/source/lucid/ntp
C library: www.hillstone-software.com/hs_ntp_details.htm
Documentation: www.nist.gov/pml/div688/grp40/its.cfm