Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements (localStorage + roundTripTime + offset API) / different calculation #2

merged 4 commits into from Jul 31, 2014


Copy link

commented Jul 22, 2014

This pull request adds two api methods:

  • offset() (returns the offset in ms)
  • round_trip() (returns the round trip time in ms)

It calculates the offset in a different place (when receiving each message back) and does only the averaging in new_time_sync.

furthermore, i store the last result in localStorage, so we get a sensible starting value for the next run.

rhodey pushed a commit that referenced this pull request Jul 31, 2014

Merge pull request #2 from ccoenen/enhancements
Enhancements (localStorage + roundTripTime + offset API) / different calculation

I no longer have a use for this project, so new commits shouldn't be expected from me *but* I will merge cool pulls :) nice work.

@rhodey rhodey merged commit afa3b73 into rhodey:master Jul 31, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.