instacart / truetime-android

Android NTP time library. Get the true current time impervious to device clock time changes
https://tech.instacart.com/truetime/
Apache License 2.0
1.41k stars 194 forks source link

Sample TrueTime and use that to build a clock drift estimation. #114

Open kaushikgopal opened 5 years ago

kaushikgopal commented 5 years ago

Sample true time and use the samples to build a linear estimation of clock drift, which is then applied at every call for the current "best time". This provides the app with continuous best-estimate of the actual time that is calibrated by TrueTime and corrected for clock drift.

Credit for this idea entirely goes to Chris from UMass. He also was kind enough to send a sample of the code he's using for this idea.

Working on trying to integrate this as part of TrueTime.

scottybe commented 5 years ago

This will be great. Any idea when this will be done?