Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » How to Sync computer Time in a network?
How to Sync computer Time in a network? [message #55896] Mon, 28 December 2020 10:05 Go to next message
sinpeople is currently offline  sinpeople
Messages: 15
Registered: October 2020
Location: Singapore
Promising Member

Hi folks,

In a network where multiple clients reporting timing-sensitive information to a server, how can the synchronization of computer time be done in this situation? Time accuracy needs to be <10ms difference in all computers.

Thank you!

Best Regards
David
Re: How to Sync computer Time in a network? [message #55897 is a reply to message #55896] Mon, 28 December 2020 13:21 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1779
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi,

This should be the job of the system administrator(s) of those computers Smile Network time protocol is usually used to take care of this. There are many implementations of NTP servers and clients for all platforms, so it should be an easy task.

Best regards,
Honza
Re: How to Sync computer Time in a network? [message #55899 is a reply to message #55896] Mon, 28 December 2020 14:22 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 815
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor

sinpeople wrote on Mon, 28 December 2020 10:05
Time 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 #55900 is a reply to message #55896] Mon, 28 December 2020 16:42 Go to previous message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
Check these links for NTP

https://stackoverflow.com/questions/97853/whats-the-best-way -to-synchronize-times-to-millisecond-accuracy-and-precision- b

https://www.meinbergglobal.com/english/sw/ntp.htm


Warm Regards

Deepak
Previous Topic: httpRequests in secondary non-gui-main Thread
Next Topic: Missing data in the socket
Goto Forum:
  


Current Time: Wed Jan 27 17:57:31 CET 2021

Total time taken to generate the page: 0.01145 seconds