Giter Site home page Giter Site logo

mhsntp's People

Contributors

darkdust avatar

Stargazers

 avatar  avatar

Watchers

 avatar

mhsntp's Issues

Manager should give feedback about whether querying failed.

Right now, there is no way to tell whether querying the time offsets has failed for all servers (for example, because the network is down). This might be useful information.

Maybe a state property might be useful for this. It would also help solve a use-case of #1: waiting for the first responses to arrive.

Improve unit test helper methods

Right now in ClientTests.swift, when an assertion is triggered in runLocalServerTest or runLocalServerTestKiss, it's not obvious which call to these methods failed. This should be improved.

Users Messing With the System Clock

Hey, I found by way here (and by the way, thanks for MHSNTP!) researching / planning a solution to user interference with the system clock.

In that stead, I think instead of using [NSDate date] to keep track of relative time....

(for example...
- (void)locked_query:(MHSNTPManagerEntry *)entry
entry.lastRequestDate = [NSDate date];
)

that it would be better to use this method of calculating system uptime

Post notification on time offset change

The MHSNTPManager should probably post a notification once the calculated time offset has changed. This comes at a little cost and I'm not sure whether it's needed at all. Need to come up with a use-case first.

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.