Synchronization (of clocks) between two remote computers

前端 未结 9 1176
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 05:40

I\'m looking into writing a simple synchronization ability into my app and one of the concerns that has popped up is synchronization of time between two remote computers, ea

9条回答
  •  伪装坚强ぢ
    2020-12-05 05:56

    Instead of writing code to synchronise the clocks, wouldn't it be possible to just run an ntp client on both machines?

    Alternatively, if the above is not possible and your app is running with sufficient privileges to set the time, I would be tempted to implement a minimal NTP client right in the application and try to sync it against a public server. Just don't hardcode someone's private server in...

提交回复
热议问题