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
merged 4 commits into from Jul 31, 2014

Conversation

@ccoenen
Copy link
Contributor

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

rhodey
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
Projects
None yet
2 participants
You can’t perform that action at this time.