I want to add a basic network clock implementation that uses ntp to calibrate the time and record the offset, the Ticker and Timer implementations are the same as clock.System.
Having received such a message or a container holding it, the client first performs a time synchronization (in effect, simply storing the difference between the server's time and its own to be able to compute the “correct” time in the future) and then verifies that the message identifiers for correctness.
Description
I want to add a basic network clock implementation that uses ntp to calibrate the time and record the offset, the
Ticker
andTimer
implementations are the same asclock.System
.Note: will import new mod: https://github.com/beevik/ntp
Add it in
gotd/td
or ingotd/contrib
?References
https://core.telegram.org/mtproto#time-synchronization