synchronization - good precision for sync time with NTP over JavaScript -
i want synchronize time ntp on javascript. client can normal pc or smartphone or tablet. connection wlan or 3g, etc.
i found questions , sites
- how ntp time through javascript
- javascript ntp time
- http://jehiah.cz/a/ntp-for-javascript
- synchronize time in javascript precision (>0.5s) (ntp-like)
first , second links using timestamp server: http://json-time.appspot.com/time.json date object has second precision. want better precision, if possible ~ 10 ms. (i know precision depends on connection , round trip time)
edit: 10 ms impossible. want precision offset.
the third link shows javascript library, not use direct connection ntp server. solution of fourth link near want. synchronizing 2 clients through 'own' server. there way synchronize directly ntp pool pool.ntp.org ?
an ntp client servos computer's own internal clock resolution. client must estimate udp round trip times , change inernal clock rate ,slowly, minimize average error.
Comments
Post a Comment