Giter Club home page Giter Club logo

Comments (2)

gavineadie avatar gavineadie commented on July 3, 2024

Is it possible to provide more accurate time than iOS provides? That's a really good question and I suspect the answer, all other things being equal, is ≈no. Extrapolating from the knowledge that macOS time derivation employs the NTP reference code from U Delaware, I'd expect iOS uses the same code. If it does, that's as good as you're going to get.

The lack of rigor in ios-ntp is the in quality of the sampling and averaging done to reduce the impact of inaccurate time sources; ios-ntp does some of this, just not with the same statistical rigor as the real thing.

Of course, this is open source and anyone should feel free to improve it .. personally, I don't believe it's worth it. As I've mentioned before, ios-ntp was written when iOS time was very unreliable. It's value in the modern era is as a quick check to make sure that iOS time has not been deliberately set to be inaccurate.

from ios-ntp.

scottrhoyt avatar scottrhoyt commented on July 3, 2024

Thanks for the prompt reply @gavineadie!

I suspected as much with regards to improving this beyond Apple's implementation. In my experimentation, I see Apple devices synced within 10s of milliseconds. That's pretty good for my needs, but if I could drop that by an order of a magnitude (single digit milliseconds), I would really be in great shape. I'm just not sure that is realistic or not, but reading that section in the README gave me an inkling of hope that a more rigorous implementation of NTP v4 would get me there. As you mention, though, iOS is tuned to be event-driven and the network conditions are highly inconsistent, so it might not be possible to do better than iOS is doing right now.

from ios-ntp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.