|
|
Home » U++ Library support » U++ MT-multithreading and servers » How to Sync computer Time in a network?
|
|
Re: How to Sync computer Time in a network? [message #55899 is a reply to message #55896] |
Mon, 28 December 2020 14:22   |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
sinpeople wrote on Mon, 28 December 2020 10:05Time accuracy needs to be <10ms difference in all computers.
With modern 100Mbit networks you have some chance to achieve this, but it's far from "guaranteed", and also I'm struggling to see how you will verify it.
Plus the PC itself will drift over time from the accurate time, not sure what modern PC numbers are, but back in 90's the PC RTC did drift couple of seconds per day, so you should resync often.
Overall if you *must* have all computers synced all the time, and you have no fallback/recovery plan, I have very bad feel about this, you probably shouldn't use PC and Internet for such task.
|
|
|
|
Re: How to Sync computer Time in a network? [message #56201 is a reply to message #55896] |
Mon, 08 February 2021 06:34  |
jjacksonRIAB
Messages: 227 Registered: June 2011
|
Experienced Member |
|
|
Without further details I feel compelled to ask: are you sure you need it? I remember one case where a client wanted synchronized times for some software and he ran into tons of trust-related issues, even with NTP. The solution to this problem was simple - just let the server track all the times based on when it receives an event. Then you don't need any complex synchronization across the network.
Everyone else gave you the common answer so I just wanted to make sure you weren't overthinking it and trusting client machines too much (especially when there is money involved - imagine if someone realized they could manipulate value by simply changing their system clock).
|
|
|
Goto Forum:
Current Time: Sat Apr 26 15:00:16 CEST 2025
Total time taken to generate the page: 0.00535 seconds
|
|
|